This repository has been archived by the owner on Jan 17, 2024. It is now read-only.
forked from 18F/dol-whd-14c
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #94 from AppliedIS/feature-adminroles
Reset Password, Change Password, Create/Edit Account Validation
- Loading branch information
Showing
10 changed files
with
186 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
....Section14c.Web/src/modules/components/accountManagementControls/accountGridTemplate.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 22 additions & 4 deletions
26
....Section14c.Web/src/modules/components/changePasswordForm/changePasswordFormTemplate.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 39 additions & 6 deletions
45
...HD.Section14c.Web/src/modules/components/resetPasswordForm/resetPasswordFormTemplate.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,54 @@ | ||
|
||
<div class="usa-alert usa-alert-error" role="alert" ng-show="vm.forgotPasswordError"> | ||
<div class="usa-alert-body"> | ||
<h3 class="usa-alert-heading">Error</h3> | ||
<p class="usa-alert-text">An error occurred while connecting to the server. Please try again later if the error persists.</p> | ||
</div> | ||
</div> | ||
|
||
<div class="usa-alert usa-alert-success" role="alert" ng-show="vm.forgotPasswordSuccess"> | ||
<div class="usa-alert-body"> | ||
<h3 class="usa-alert-heading">Email Sent</h3> | ||
<p class="usa-alert-text">If your the email address matches our records, you should recieve an email with a link to reset your password.</p> | ||
</div> | ||
</div> | ||
|
||
<div class="usa-alert usa-alert-error" role="alert" ng-show="vm.resetPasswordError"> | ||
<div class="usa-alert-body"> | ||
<h3 class="usa-alert-heading">Error</h3> | ||
<p class="usa-alert-text">An error occurred while reseting your password. | ||
<ul ng-show="resetPasswordErrors.length > 0"> | ||
<li ng-repeat="error in resetPasswordErrors">{{error}}</li> | ||
</u> | ||
</p> | ||
</div> | ||
</div> | ||
|
||
<div class="usa-alert usa-alert-success" role="alert" ng-show="vm.resetPasswordSuccess"> | ||
<div class="usa-alert-body"> | ||
<h3 class="usa-alert-heading">Password Reset</h3> | ||
<p class="usa-alert-text">Your password has be reset. Please <a href="/">Login</a> with your new password.</p> | ||
</div> | ||
</div> | ||
|
||
<form ng-submit="onSubmitClick()" ng-show="!vm.isResetPasswordVerificationRequest"> | ||
<h2>Forgot Password</h2> | ||
<div> | ||
<div ng-class="vm.forgotPasswordError ? 'usa-input-error' : ''"> | ||
<label for="userName">Email</label> | ||
<input name="userName" id="userName" type="email" placeholder="Email" ng-model="formVals.email" /> | ||
</div> | ||
<div class="loginbtn"><button type="submit">Email Reset Link</button></div> | ||
<div><button type="submit">Email Reset Link</button></div> | ||
</form> | ||
|
||
<form ng-submit="onVerifySubmitClick()" ng-show="vm.isResetPasswordVerificationRequest"> | ||
<h2>Reset Password</h2> | ||
<div> | ||
<div ng-class="vm.resetPasswordError ? 'usa-input-error' : ''"> | ||
<label for="newPass">New Password</label> | ||
<input type="password" name="newPass" id="newPass" placeholder="New Password" ng-model="formVals.newPass" /> | ||
</div> | ||
<div> | ||
<div ng-class="vm.resetPasswordError ? 'usa-input-error' : ''"> | ||
<label for="confirmPass">Confirm Password</label> | ||
<input type="password" name="confirmPass" id="confirmPass" placeholder="Confirm Password" ng-model="formVals.confirmPass" /> | ||
</div> | ||
<div class="loginbtn"><button type="submit">Reset Password</button></div> | ||
|
||
<div><button type="submit">Reset Password</button></div> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.