1
0
mirror of https://github.com/bitwarden/web synced 2025-12-06 00:03:28 +00:00

add name to registration form

This commit is contained in:
Kyle Spearrin
2018-07-03 11:42:50 -04:00
parent ae51847f02
commit 1e7c2c2362
3 changed files with 17 additions and 2 deletions

2
jslib

Submodule jslib updated: 269b59210c...3454d93fef

View File

@@ -8,12 +8,18 @@
<label for="email">{{'emailAddress' | i18n}}</label>
<input id="email" class="form-control" type="text" name="Email" [(ngModel)]="email" required [appAutofocus]="email === ''"
inputmode="email" appInputVerbatim="false">
<small class="form-text text-muted">{{'emailAddressDesc' | i18n}}</small>
</div>
<div class="form-group">
<label for="name">{{'yourName' | i18n}}</label>
<input id="name" class="form-control" type="text" name="Name" [(ngModel)]="name" [appAutofocus]="email !== ''">
<small class="form-text text-muted">{{'yourNameDesc' | i18n}}</small>
</div>
<div class="form-group">
<label for="masterPassword">{{'masterPass' | i18n}}</label>
<div class="d-flex">
<input id="masterPassword" type="{{showPassword ? 'text' : 'password'}}" name="MasterPassword" class="text-monospace form-control"
[(ngModel)]="masterPassword" required [appAutofocus]="email !== ''" appInputVerbatim>
[(ngModel)]="masterPassword" required appInputVerbatim>
<button type="button" class="ml-1 btn btn-link" appBlurClick title="{{'toggleVisibility' | i18n}}" (click)="togglePassword(false)">
<i class="fa fa-lg" [ngClass]="{'fa-eye': !showPassword, 'fa-eye-slash': showPassword}"></i>
</button>

View File

@@ -494,6 +494,15 @@
"submit": {
"message": "Submit"
},
"emailAddressDesc": {
"message": "You'll use your email address to log in."
},
"yourName": {
"message": "Your Name"
},
"yourNameDesc": {
"message": "What should we call you?"
},
"masterPass": {
"message": "Master Password"
},