Skip to content

Commit

Permalink
Merge pull request #9549 from remyj38/stable12
Browse files Browse the repository at this point in the history
[stable12] Fix translation bug on lost password page
  • Loading branch information
MorrisJobke committed May 22, 2018
2 parents dc585de + 4130f27 commit 2c64557
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/Controller/LostController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

namespace OC\Core\Controller;

use OC\HintException;
use \OCP\AppFramework\Controller;
use OCP\AppFramework\Http\JSONResponse;
use \OCP\AppFramework\Http\TemplateResponse;
Expand Down Expand Up @@ -274,6 +275,8 @@ public function setPassword($token, $userId, $password, $proceed) {

$this->config->deleteUserValue($userId, 'core', 'lostpassword');
@\OC_User::unsetMagicInCookie();
} catch (HintException $e){
return $this->error($e->getHint());
} catch (\Exception $e){
return $this->error($e->getMessage());
}
Expand Down

0 comments on commit 2c64557

Please sign in to comment.