2022-07-05 21:25:14 +02:00
|
|
|
<form
|
|
|
|
id="register-page"
|
|
|
|
#form
|
|
|
|
(ngSubmit)="submit()"
|
|
|
|
[appApiAction]="formPromise"
|
|
|
|
[formGroup]="formGroup"
|
|
|
|
>
|
2018-01-31 20:19:21 +01:00
|
|
|
<div class="content">
|
2018-01-31 23:06:14 +01:00
|
|
|
<h1>{{ "createAccount" | i18n }}</h1>
|
2018-01-31 20:19:21 +01:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-content">
|
|
|
|
<div class="box-content-row" appBoxRow>
|
|
|
|
<label for="email">{{ "emailAddress" | i18n }}</label>
|
2022-07-05 21:25:14 +02:00
|
|
|
<input id="email" type="email" formControlName="email" appInputVerbatim />
|
2018-01-31 20:19:21 +01:00
|
|
|
</div>
|
2018-02-24 19:45:41 +01:00
|
|
|
<div class="box-content-row" appBoxRow>
|
|
|
|
<div class="box-content-row-flex">
|
|
|
|
<div class="row-main">
|
|
|
|
<label for="masterPassword">
|
|
|
|
{{ "masterPass" | i18n }}
|
2022-08-02 00:26:50 +02:00
|
|
|
<strong class="sub-label text-{{ color }}" *ngIf="text">
|
|
|
|
{{ text }}
|
2018-11-15 21:43:17 +01:00
|
|
|
</strong>
|
2018-02-24 19:45:41 +01:00
|
|
|
</label>
|
|
|
|
<input
|
|
|
|
id="masterPassword"
|
|
|
|
type="{{ showPassword ? 'text' : 'password' }}"
|
2019-04-03 06:04:42 +02:00
|
|
|
class="monospaced"
|
2022-12-21 20:48:22 +01:00
|
|
|
aria-describedby="masterPasswordHelp"
|
2022-07-05 21:25:14 +02:00
|
|
|
formControlName="masterPassword"
|
2018-01-31 20:19:21 +01:00
|
|
|
appInputVerbatim
|
2021-07-23 20:48:10 +02:00
|
|
|
/>
|
2018-01-31 20:19:21 +01:00
|
|
|
</div>
|
|
|
|
<div class="action-buttons">
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* Change links to buttons, expose `aria-pressed` for toggles
- also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"`
* Correctly set aria-pressed
now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge
* Change more links to buttons, initial style changes
* Fix layout of <button> elements with .box-content-row
* Update jslib submodule
* Add `aria-expanded` to the send view's "Show options" expand/collapse control
* Fix position of "Edit" pencil when hovering over folders
* Update jslib
* Change sends list links to buttons
* Add `aria-pressed` to vault and send list buttons
Programmatically denote which of the buttons is currently active/shown in the right-most panel
* Fix incorrect "Options" expand/collapse button in add-edit view
Currently, that buttons lacks an accName because the "Options" text is outside of it.
* Add `aria-pressed` to the send left-hand column filters
* Simplify base, list, and vault styles
Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts.
* Remove unnecessary `position:relative`
Fixes issue with cut-off focus outlines, has no other adverse effect
* Fix styling for last child of action buttons
Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
2022-04-30 16:09:41 +02:00
|
|
|
<button
|
|
|
|
type="button"
|
2018-01-31 20:19:21 +01:00
|
|
|
class="row-btn"
|
|
|
|
appStopClick
|
|
|
|
appA11yTitle="{{ 'toggleVisibility' | i18n }}"
|
2022-03-27 22:42:47 +02:00
|
|
|
[attr.aria-pressed]="showPassword"
|
2022-07-05 21:25:14 +02:00
|
|
|
(click)="togglePassword()"
|
2021-12-20 15:47:17 +01:00
|
|
|
>
|
|
|
|
<i
|
2022-01-27 18:21:53 +01:00
|
|
|
class="bwi bwi-lg"
|
2018-01-31 20:19:21 +01:00
|
|
|
aria-hidden="true"
|
2022-01-27 18:21:53 +01:00
|
|
|
[ngClass]="{ 'bwi-eye': !showPassword, 'bwi-eye-slash': showPassword }"
|
2021-12-20 15:47:17 +01:00
|
|
|
></i>
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* Change links to buttons, expose `aria-pressed` for toggles
- also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"`
* Correctly set aria-pressed
now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge
* Change more links to buttons, initial style changes
* Fix layout of <button> elements with .box-content-row
* Update jslib submodule
* Add `aria-expanded` to the send view's "Show options" expand/collapse control
* Fix position of "Edit" pencil when hovering over folders
* Update jslib
* Change sends list links to buttons
* Add `aria-pressed` to vault and send list buttons
Programmatically denote which of the buttons is currently active/shown in the right-most panel
* Fix incorrect "Options" expand/collapse button in add-edit view
Currently, that buttons lacks an accName because the "Options" text is outside of it.
* Add `aria-pressed` to the send left-hand column filters
* Simplify base, list, and vault styles
Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts.
* Remove unnecessary `position:relative`
Fixes issue with cut-off focus outlines, has no other adverse effect
* Fix styling for last child of action buttons
Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
2022-04-30 16:09:41 +02:00
|
|
|
</button>
|
2018-01-31 20:19:21 +01:00
|
|
|
</div>
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
2022-08-02 00:26:50 +02:00
|
|
|
<app-password-strength
|
|
|
|
[password]="formGroup.get('masterPassword')?.value"
|
|
|
|
[email]="formGroup.get('email')?.value"
|
|
|
|
[name]="formGroup.get('name')?.value"
|
|
|
|
(passwordStrengthResult)="getStrengthResult($event)"
|
|
|
|
(passwordScoreColor)="getPasswordScoreText($event)"
|
|
|
|
>
|
|
|
|
</app-password-strength>
|
2018-01-31 20:19:21 +01:00
|
|
|
</div>
|
2020-11-02 23:32:58 +01:00
|
|
|
</div>
|
2022-12-21 20:48:22 +01:00
|
|
|
<div id="masterPasswordHelp" class="box-footer">
|
2018-01-31 20:19:21 +01:00
|
|
|
{{ "masterPassDesc" | i18n }}
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-02 23:32:58 +01:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-content">
|
|
|
|
<div class="box-content-row box-content-row-flex" appBoxRow>
|
|
|
|
<div class="row-main">
|
|
|
|
<label for="masterPasswordRetype">{{ "reTypeMasterPass" | i18n }}</label>
|
|
|
|
<input
|
|
|
|
id="masterPasswordRetype"
|
|
|
|
type="{{ showPassword ? 'text' : 'password' }}"
|
|
|
|
class="monospaced"
|
2022-07-05 21:25:14 +02:00
|
|
|
formControlName="confirmMasterPassword"
|
2021-11-23 23:03:43 +01:00
|
|
|
appInputVerbatim
|
2021-12-20 15:47:17 +01:00
|
|
|
/>
|
|
|
|
</div>
|
2020-11-02 23:32:58 +01:00
|
|
|
<div class="action-buttons">
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* Change links to buttons, expose `aria-pressed` for toggles
- also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"`
* Correctly set aria-pressed
now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge
* Change more links to buttons, initial style changes
* Fix layout of <button> elements with .box-content-row
* Update jslib submodule
* Add `aria-expanded` to the send view's "Show options" expand/collapse control
* Fix position of "Edit" pencil when hovering over folders
* Update jslib
* Change sends list links to buttons
* Add `aria-pressed` to vault and send list buttons
Programmatically denote which of the buttons is currently active/shown in the right-most panel
* Fix incorrect "Options" expand/collapse button in add-edit view
Currently, that buttons lacks an accName because the "Options" text is outside of it.
* Add `aria-pressed` to the send left-hand column filters
* Simplify base, list, and vault styles
Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts.
* Remove unnecessary `position:relative`
Fixes issue with cut-off focus outlines, has no other adverse effect
* Fix styling for last child of action buttons
Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
2022-04-30 16:09:41 +02:00
|
|
|
<button
|
|
|
|
type="button"
|
2020-11-02 23:32:58 +01:00
|
|
|
class="row-btn"
|
|
|
|
appStopClick
|
|
|
|
appA11yTitle="{{ 'toggleVisibility' | i18n }}"
|
2022-03-27 22:42:47 +02:00
|
|
|
[attr.aria-pressed]="showPassword"
|
2022-07-05 21:25:14 +02:00
|
|
|
(click)="togglePassword()"
|
2021-12-20 15:47:17 +01:00
|
|
|
>
|
|
|
|
<i
|
2022-01-27 18:21:53 +01:00
|
|
|
class="bwi bwi-lg"
|
2020-11-02 23:32:58 +01:00
|
|
|
aria-hidden="true"
|
2022-01-27 18:21:53 +01:00
|
|
|
[ngClass]="{ 'bwi-eye': !showPassword, 'bwi-eye-slash': showPassword }"
|
2021-12-20 15:47:17 +01:00
|
|
|
></i>
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* Change links to buttons, expose `aria-pressed` for toggles
- also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"`
* Correctly set aria-pressed
now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge
* Change more links to buttons, initial style changes
* Fix layout of <button> elements with .box-content-row
* Update jslib submodule
* Add `aria-expanded` to the send view's "Show options" expand/collapse control
* Fix position of "Edit" pencil when hovering over folders
* Update jslib
* Change sends list links to buttons
* Add `aria-pressed` to vault and send list buttons
Programmatically denote which of the buttons is currently active/shown in the right-most panel
* Fix incorrect "Options" expand/collapse button in add-edit view
Currently, that buttons lacks an accName because the "Options" text is outside of it.
* Add `aria-pressed` to the send left-hand column filters
* Simplify base, list, and vault styles
Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts.
* Remove unnecessary `position:relative`
Fixes issue with cut-off focus outlines, has no other adverse effect
* Fix styling for last child of action buttons
Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
2022-04-30 16:09:41 +02:00
|
|
|
</button>
|
2020-11-02 23:32:58 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-01-31 20:19:21 +01:00
|
|
|
<div class="box-content-row" appBoxRow>
|
|
|
|
<label for="hint">{{ "masterPassHint" | i18n }}</label>
|
2022-12-21 20:48:22 +01:00
|
|
|
<input id="hint" type="text" aria-describedby="hintHelp" formControlName="hint" />
|
2018-01-31 20:19:21 +01:00
|
|
|
</div>
|
2022-06-09 14:14:31 +02:00
|
|
|
<div class="box last" [hidden]="!showCaptcha()">
|
|
|
|
<div class="box-content">
|
|
|
|
<div class="box-content-row">
|
|
|
|
<iframe id="hcaptcha_iframe" height="80"></iframe>
|
|
|
|
<button class="btn block" type="button" routerLink="/accessibility-cookie">
|
|
|
|
<i class="bwi bwi-universal-access" aria-hidden="true"></i>
|
|
|
|
{{ "loadAccessibilityCookie" | i18n }}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-12-21 20:48:22 +01:00
|
|
|
<div id="hintHelp" class="box-footer">
|
2018-01-31 20:19:21 +01:00
|
|
|
{{ "masterPassHintDesc" | i18n }}
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-02 23:32:58 +01:00
|
|
|
<div class="box last" *ngIf="showTerms">
|
2018-01-31 20:19:21 +01:00
|
|
|
<div class="box-footer checkbox">
|
2022-07-05 21:25:14 +02:00
|
|
|
<input type="checkbox" id="acceptPolicies" formControlName="acceptPolicies" />
|
2020-11-02 23:32:58 +01:00
|
|
|
<label for="acceptPolicies">
|
|
|
|
{{ "acceptPolicies" | i18n }}<br />
|
|
|
|
<a href="https://bitwarden.com/terms/" target="_blank" rel="noopener">{{
|
|
|
|
"termsOfService" | i18n
|
2021-12-20 15:47:17 +01:00
|
|
|
}}</a
|
|
|
|
>,
|
2020-11-02 23:32:58 +01:00
|
|
|
<a href="https://bitwarden.com/privacy/" target="_blank" rel="noopener">{{
|
|
|
|
"privacyPolicy" | i18n
|
2021-12-20 15:47:17 +01:00
|
|
|
}}</a>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-01-31 20:19:21 +01:00
|
|
|
<div class="buttons">
|
2022-05-05 16:36:46 +02:00
|
|
|
<button type="submit" class="btn primary block" [disabled]="form.loading">
|
2018-02-20 22:47:35 +01:00
|
|
|
<b [hidden]="form.loading">{{ "submit" | i18n }}</b>
|
2022-01-27 18:21:53 +01:00
|
|
|
<i class="bwi bwi-spinner bwi-spin" [hidden]="!form.loading" aria-hidden="true"></i>
|
2018-01-31 20:19:21 +01:00
|
|
|
</button>
|
2022-05-05 16:36:46 +02:00
|
|
|
<button type="button" routerLink="/login" class="btn block">{{ "cancel" | i18n }}</button>
|
2018-01-31 20:19:21 +01:00
|
|
|
</div>
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
2018-01-31 20:19:21 +01:00
|
|
|
</form>
|