diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-05-08 17:49:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-08 17:49:52 +0200 |
commit | c28fe270b6b53c86dabce47cc15e9f49eb0b6d12 (patch) | |
tree | b2d46d5921727df1d40f791c654eaaa8630f7b19 /settings | |
parent | 5213c56197bd36f66351260632c4d5cb88ccafec (diff) | |
parent | f2a2b34e4639e88f8d948a388a51f010212b42a3 (diff) | |
download | nextcloud-server-c28fe270b6b53c86dabce47cc15e9f49eb0b6d12.tar.gz nextcloud-server-c28fe270b6b53c86dabce47cc15e9f49eb0b6d12.zip |
Merge pull request #4727 from stffabi/IncreaseDeviceEntropy
Increase device password entropy.
Diffstat (limited to 'settings')
-rw-r--r-- | settings/Controller/AuthSettingsController.php | 8 | ||||
-rw-r--r-- | settings/css/settings.css | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/settings/Controller/AuthSettingsController.php b/settings/Controller/AuthSettingsController.php index 57192e119a9..7bb8a6654e6 100644 --- a/settings/Controller/AuthSettingsController.php +++ b/settings/Controller/AuthSettingsController.php @@ -154,16 +154,16 @@ class AuthSettingsController extends Controller { } /** - * Return a 20 digit device password + * Return a 25 digit device password * - * Example: ABCDE-FGHIJ-KLMNO-PQRST + * Example: AbCdE-fGhIj-KlMnO-pQrSt-12345 * * @return string */ private function generateRandomDeviceToken() { $groups = []; - for ($i = 0; $i < 4; $i++) { - $groups[] = $this->random->generate(5, implode('', range('A', 'Z'))); + for ($i = 0; $i < 5; $i++) { + $groups[] = $this->random->generate(5, ISecureRandom::CHAR_HUMAN_READABLE); } return implode('-', $groups); } diff --git a/settings/css/settings.css b/settings/css/settings.css index 95649fc23eb..fb71e5ece23 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -392,7 +392,7 @@ table.nostyle td { #new-app-login-name, #new-app-password { - width: 186px; + width: 245px; font-family: monospace; background-color: lightyellow; } |