Skip to content

Commit

Permalink
fix password confirmation (fix #72)
Browse files Browse the repository at this point in the history
  • Loading branch information
sualko committed Oct 18, 2017
1 parent 93331a9 commit a651107
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Controller/SettingsController.php
Expand Up @@ -322,8 +322,7 @@ private function validateBoolean($val)
private function isPasswordConfirmationRequired()
{
$version = \OCP\Util::getVersion();
preg_match('/^([0-9]+)\.', $version, $versionMatches);
$majorVersion = intval($versionMatches[1]);
$majorVersion = intval($version[0]);

// copied from owncloud/settings/ajax/installapp.php
$lastConfirm = (int) \OC::$server->getSession()->get('last-password-confirm');
Expand Down

0 comments on commit a651107

Please sign in to comment.