Fix translation bug on lost password page

Fix nextcloud/password_policy#26

Signed-off-by: Rémy Jacquin <remy@remyj.fr>
pull/9531/head
Rémy Jacquin 7 years ago
parent ca089b9412
commit 04e1cab5ee
No known key found for this signature in database
GPG Key ID: BEEF3B9EC3E7FBE9
  1. 3
      core/Controller/LostController.php

@ -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;
@ -275,6 +276,8 @@ class LostController extends Controller {
$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());
}

Loading…
Cancel
Save