Skip to content

Commit 99e17c2

Browse files
waazdakkajoshtrichards
authored andcommitted
feat: Update index.php to allow users to just copy paste the line on the config.php file
The initial syntax used double quotes and two points which is not the correct syntax in the config.php file instead of simple quote and "=>". This proposition to allow users to just copy paste the line into their config.php file Signed-off-by: waazdakka <raphael.piedallu@live.com>
1 parent 856af67 commit 99e17c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1987,7 +1987,7 @@ public function isAuthenticated(): bool {
19871987
<p>To login you need to provide the unhashed value of "updater.secret" in your config file.</p>
19881988
<p>If you don't know that value, you can access this updater directly via the Nextcloud admin screen or generate
19891989
your own secret:</p>
1990-
<code>php -r '$password = trim(shell_exec("openssl rand -base64 48"));if(strlen($password) === 64) {$hash = password_hash($password, PASSWORD_DEFAULT) . "\n"; echo "Insert as \"updater.secret\": ".$hash; echo "The plaintext value is: ".$password."\n";}else{echo "Could not execute OpenSSL.\n";};'</code>
1990+
<code>php -r '$password = trim(shell_exec("openssl rand -base64 48"));if(strlen($password) === 64) {$hash = password_hash($password, PASSWORD_DEFAULT); echo "Insert this line in your config.php: \n\n'" 'updater.secret' => '"'.$hash'"',\n\n"'"; echo "The plaintext value is: ".$password."\n";;}else{echo "Could not execute OpenSSL.\n";};'</code>
19911991
<form method="post" name="login">
19921992
<fieldset>
19931993
<input type="password" name="updater-secret-input" value=""

0 commit comments

Comments
 (0)