login: show error on password reset

This commit is contained in:
Girish Ramakrishnan
2024-01-13 21:52:30 +01:00
parent 01d33c45bd
commit ce0b66db7d
2 changed files with 4 additions and 2 deletions

View File

@@ -81,7 +81,8 @@ app.controller('PasswordResetController', ['$scope', '$translate', '$http', func
identifier: $scope.passwordResetIdentifier
};
function done() {
function done(error) {
if (error) $scope.error = error.message;
$scope.busy = false;
$scope.mode = 'passwordResetDone';
}

View File

@@ -89,7 +89,8 @@
<div class="col-md-12" style="text-align: center;">
<img width="128" height="128" style="margin-top: -84px" src="<%= apiOrigin %>/api/v1/cloudron/avatar"/>
<br/>
<h2>{{ 'passwordReset.emailSent.title' | tr }}</h2>
<h2 ng-hide="error">{{ 'passwordReset.emailSent.title' | tr }}</h2>
<h4 ng-show="error" class="has-error">{{ error }}</h4>
<br/>
<a href="/" class="btn btn-primary">{{ 'passwordReset.backToLoginAction' | tr }}</a>
</div>