Skip to content

Commit

Permalink
Merge pull request #9548 from remyj38/stable13
Browse files Browse the repository at this point in the history
[stable13] Fix translation bug on lost password page
  • Loading branch information
MorrisJobke committed May 22, 2018
2 parents c628b61 + 0b8908b commit 04ff701
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 @@ -31,6 +31,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 @@ -275,6 +276,8 @@ public function setPassword($token, $userId, $password, $proceed) {

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

0 comments on commit 04ff701

Please sign in to comment.