Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit e8ec296

Browse files
authored
Merge pull request #90 from appirio-tech/feature/block-sso-users-passwd-reset
Modified the error message when SSO users try to rest password
2 parents 20a8384 + 7c61934 commit e8ec296

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/scripts/tc/reset-password.controller.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { DOMAIN } from '../../../core/constants.js'
2121
vm.alreadySent = false
2222
vm.emailNotFound = false
2323
vm.unableToRest = false
24-
vm.resetError = false
24+
vm.unkownError = false
2525
}
2626
vm.clearState()
2727

@@ -45,6 +45,8 @@ import { DOMAIN } from '../../../core/constants.js'
4545
vm.unableToRest = true
4646
else if (err.status == 404)
4747
vm.emailNotFound = true
48+
else
49+
vm.unkownError = true
4850

4951
vm.resetTokenFailed = true
5052
vm.loading = false

app/views/tc/reset-password.jade

+1-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
p.form-error(ng-show="vm.emailNotFound") We couldn't find a member with that email address. Please check that you entered it correctly. If you continue to have trouble, please contact 
3232
a(href="mailto:[email protected]?Subject=Unable%20to%20reset%20my%20password" target="_top") [email protected]
3333

34-
p.form-error(ng-show="vm.unableToRest") We were unable to send you a reset link because your account is not allowed to reset password. If you continue to have trouble, please contact 
35-
a(href="mailto:[email protected]?Subject=Unable%20to%20reset%20my%20password" target="_top") [email protected]
34+
p.form-error(ng-show="vm.unableToRest") We were unable to send you a reset link because your account is not allowed to reset password. If you are using Single Sign On, please follow the instructions of your SSO account to reset password.
3635

3736
p.form-error(ng-show="vm.unkownError") We were unable to send you a reset link because of a temporary problem. Please try again. If you continue to have trouble, please contact 
3837
a(href="mailto:[email protected]?Subject=Unable%20to%20reset%20my%20password" target="_top") [email protected]

0 commit comments

Comments
 (0)