feat(stack-creation): add note for 2FA (#3509)

* refactor(stack-creation): add note for 2FA

* Update app/portainer/views/stacks/create/createstack.html

Co-Authored-By: Anthony Lapenna <anthony.lapenna@portainer.io>

Co-authored-by: Anthony Lapenna <lapenna.anthony@gmail.com>
pull/3524/head
William 2020-01-23 09:17:04 +13:00 committed by Anthony Lapenna
parent 2ba195adaa
commit fa5bb9b1be
1 changed files with 7 additions and 2 deletions

View File

@ -160,15 +160,20 @@
</label> </label>
</div> </div>
</div> </div>
<div class="form-group" ng-if="formValues.RepositoryAuthentication">
<span class="col-sm-12 text-muted small">
If your git account has 2FA enabled, you may receive an <code>authentication required</code> error when deploying your stack. In this case, you will need to provide a personal-access token instead of your password.
</span>
</div>
<div class="form-group" ng-if="formValues.RepositoryAuthentication"> <div class="form-group" ng-if="formValues.RepositoryAuthentication">
<label for="repository_username" class="col-sm-1 control-label text-left">Username</label> <label for="repository_username" class="col-sm-1 control-label text-left">Username</label>
<div class="col-sm-11 col-md-5"> <div class="col-sm-11 col-md-5">
<input type="text" class="form-control" ng-model="formValues.RepositoryUsername" name="repository_username" placeholder="myGitUser"> <input type="text" class="form-control" ng-model="formValues.RepositoryUsername" name="repository_username" placeholder="myGitUser">
</div> </div>
<label for="repository_password" class="col-sm-1 margin-sm-top control-label text-left"> <label for="repository_password" class="col-sm-1 control-label text-left">
Password Password
</label> </label>
<div class="col-sm-11 col-md-5 margin-sm-top"> <div class="col-sm-11 col-md-5">
<input type="password" class="form-control" ng-model="formValues.RepositoryPassword" name="repository_password" placeholder="myPassword"> <input type="password" class="form-control" ng-model="formValues.RepositoryPassword" name="repository_password" placeholder="myPassword">
</div> </div>
</div> </div>