예제 #1
0
        public async Task <IActionResult> ChangePassword()
        {
            var hasPassword = await _auth.CheckPasswordData(User);

            if (!hasPassword)
            {
                return(RedirectToAction(nameof(SetPassword)));
            }

            var model = new ChangePasswordViewModel {
                StatusMessage = StatusMessage
            };

            return(View(model));
        }