Display the password change dialog immediately after account recovery

Fixes #1697
This commit is contained in:
Joseph Schorr 2016-11-28 18:59:01 -05:00
parent dcd8157207
commit 2a24bbfb50

View file

@ -43,9 +43,14 @@
$scope.context.viewuser = user;
$scope.viewuser = user;
// Load the repositories.
$timeout(function() {
// Load the repositories.
loadRepositories();
// Show the password change dialog if immediately after an account recovery.
if ($routeParams.action == 'password' && UserService.isNamespaceAdmin(username)) {
$scope.showChangePassword();
}
}, 10);
});
};