Fix translation bug on lost password page
Fix nextcloud/password_policy#26 Signed-off-by: Rémy Jacquin <remy@remyj.fr>
This commit is contained in:
parent
5a9e54ad59
commit
4130f279b2
|
@ -30,6 +30,7 @@
|
||||||
|
|
||||||
namespace OC\Core\Controller;
|
namespace OC\Core\Controller;
|
||||||
|
|
||||||
|
use OC\HintException;
|
||||||
use \OCP\AppFramework\Controller;
|
use \OCP\AppFramework\Controller;
|
||||||
use OCP\AppFramework\Http\JSONResponse;
|
use OCP\AppFramework\Http\JSONResponse;
|
||||||
use \OCP\AppFramework\Http\TemplateResponse;
|
use \OCP\AppFramework\Http\TemplateResponse;
|
||||||
|
@ -274,6 +275,8 @@ class LostController extends Controller {
|
||||||
|
|
||||||
$this->config->deleteUserValue($userId, 'core', 'lostpassword');
|
$this->config->deleteUserValue($userId, 'core', 'lostpassword');
|
||||||
@\OC_User::unsetMagicInCookie();
|
@\OC_User::unsetMagicInCookie();
|
||||||
|
} catch (HintException $e){
|
||||||
|
return $this->error($e->getHint());
|
||||||
} catch (\Exception $e){
|
} catch (\Exception $e){
|
||||||
return $this->error($e->getMessage());
|
return $this->error($e->getMessage());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue