mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-10 07:01:21 +00:00
GUAC-801 Improved styling of password change dialog.
This commit is contained in:
@@ -199,6 +199,17 @@ angular.module('home').controller('homeController', ['$scope', '$injector',
|
||||
return;
|
||||
}
|
||||
|
||||
// Verify that the new password is not blank
|
||||
if (!$scope.newPassword) {
|
||||
$scope.showStatus({
|
||||
className : 'error',
|
||||
title : 'HOME.DIALOG_HEADER_ERROR',
|
||||
text : 'HOME.ERROR_PASSWORD_BLANK',
|
||||
actions : [ ACKNOWLEDGE_ACTION ]
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
// Save the user with the new password
|
||||
userService.updateUserPassword(currentUserID, $scope.oldPassword, $scope.newPassword)
|
||||
.success(function passwordUpdated() {
|
||||
|
Reference in New Issue
Block a user