Fix attempts to confirm team invite for mismatched email address
Currently, if a user tries to confirm an invite sent to them on an account with a mismatching email address, we simply redirect to the org (where they get a 403). This change ensures they get the proper error response message, and restyles the error page to be nicer. Fixes #2227 Fixes https://www.pivotaltracker.com/story/show/136088507
This commit is contained in:
parent
2730c26b2e
commit
785c74de52
3 changed files with 118 additions and 10 deletions
|
@ -5,9 +5,12 @@
|
|||
<div class="user-setup" ng-show="user.anonymous" redirect-url="redirectUrl"
|
||||
invite-code="inviteCode">
|
||||
</div>
|
||||
<div class="quay-spinner" ng-show="!user.anonymous && loading"></div>
|
||||
<div class="alert alert-danger" ng-show="!user.anonymous && invalid">
|
||||
{{ invalid }}
|
||||
<div class="cor-loader-inline" ng-show="!user.anonymous && loading"></div>
|
||||
|
||||
<div class="error-view-element" ng-show="!user.anonymous && invalid">
|
||||
<h2><i class="fa fa-exclamation-triangle"></i> Confirmation Error</h2>
|
||||
<h3>Confirmation code does not match this account</h3>
|
||||
<div>{{ invalid }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Reference in a new issue