From 2a24bbfb50e43729a1f8b8c50127c06c8bbec156 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 28 Nov 2016 18:59:01 -0500 Subject: [PATCH] Display the password change dialog immediately after account recovery Fixes #1697 --- static/js/pages/user-view.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/static/js/pages/user-view.js b/static/js/pages/user-view.js index ff15d0c4d..c97a786b8 100644 --- a/static/js/pages/user-view.js +++ b/static/js/pages/user-view.js @@ -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); }); };