Skip to content

Commit

Permalink
Merge pull request #460 from BillionOysterProject/BOP-1395
Browse files Browse the repository at this point in the history
disabled changing username on invite
  • Loading branch information
thetif authored May 23, 2017
2 parents 54adfb3 + 5d048e0 commit a55a513
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ angular.module('users').controller('ClaimUserController', ['$scope', '$statePara
$scope.popoverMsg = PasswordValidator.getPopoverMsg();

$scope.username = $location.search().username;
$scope.usernameProvided = ($location.search().username) ? true : false;

// If user is signed in then redirect back home
if ($scope.authentication.user) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h3 class="col-md-12 text-center">Claim Your Account</h3>
<div class="form-group" show-errors>
<label for="username">Username</label>
<input type="text" id="username" name="username" class="form-control" ng-model="username"
placeholder="Username" lowercase required>
placeholder="Username" lowercase required ng-disabled="usernameProvided">
<div ng-messages="claimUserForm.username.$error" role="alert">
<p class="help-block error-text" ng-message="required">Username is required.</p>
</div>
Expand Down

0 comments on commit a55a513

Please sign in to comment.