-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Confirmation pages ported over (confirmation, lounge, recovery)
- Loading branch information
1 parent
5ef8f09
commit 33f6872
Showing
8 changed files
with
69 additions
and
381 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
angular.module 'mnoEnterpriseAngular' | ||
.controller('AuthConfirmRecoveryCtrl', | ||
($state, $stateParams, MnoeAuthSvc, toastr, MnoErrorsHandler) -> | ||
vm = @ | ||
vm.user = {} | ||
|
||
vm.resendConfirmation = -> | ||
MnoeAuthSvc.all('/users/confirmation').post({user: vm.user}).then( | ||
-> | ||
toastr.info('If your email address exists in our database and is unconfirmed, you will receive an email with instructions in a few minutes.') | ||
$state.go('login') | ||
-> | ||
toastr.error('Your request was unsuccessful, please try again or contact your platform administrator.') | ||
) | ||
return | ||
) |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<div> | ||
<div class='registration'> | ||
<div class='container'> | ||
<div class='row'> | ||
<div class='login-box-wrapper'> | ||
<div class='login-box-title'> | ||
<h2>Confirmation</h2> | ||
</div> | ||
<div class='login-box'> | ||
<div class='brand-logo'></div> | ||
<form name="vm.form" class="form-horizontal autofill-detect" id="new_user" ng-submit="vm.resendConfirmation()"> | ||
<div class='row'> | ||
<div class='col-sm-12'> | ||
<input placeholder="*Email" autofocus="autofocus" required="required" ng-model="vm.user.email" class="form-control" type="email" name="user[email]" id="user_email" /> | ||
</div> | ||
</div> | ||
<br> | ||
<div class='row'> | ||
<div class='col-sm-12'> | ||
<div class='text-center'> | ||
<button class='btn btn-warning' ng-click='vm.hasClicked = true' ng-disabled='vm.form.$invalid' ng-hide='vm.hasClicked' type='submit'>Resend confirmation instructions</button> | ||
<img ng-show='vm.hasClicked' class='loader'> | ||
</div> | ||
</div> | ||
</div> | ||
</form> | ||
<hr> | ||
<a ui-sref="login">{{'mno_enterprise.auth.shared.links.login' | translate}}</a> | ||
<br> | ||
<a ui-sref="signup">{{'mno_enterprise.auth.shared.links.signup' | translate}}</a> | ||
<br> | ||
<a ui-sref="password_recovery">{{'mno_enterprise.auth.shared.links.recover_password' | translate}}</a> | ||
<br> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
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