2022-02-02 16:32:06 +01:00
|
|
|
<div id="login-page">
|
|
|
|
<div class="login-header">
|
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"
|
2022-02-02 16:32:06 +01:00
|
|
|
appStopClick
|
|
|
|
(click)="settings()"
|
|
|
|
class="environment-urls-settings-icon"
|
|
|
|
attr.aria-label="{{ 'settings' | i18n }}"
|
|
|
|
>
|
|
|
|
<i class="bwi bwi-cog bwi-lg" aria-hidden="true"></i>
|
|
|
|
{{ "settings" | i18n }}
|
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>
|
2022-02-02 16:32:06 +01:00
|
|
|
</div>
|
|
|
|
<form
|
|
|
|
id="login-page"
|
|
|
|
#form
|
|
|
|
(ngSubmit)="submit()"
|
|
|
|
[appApiAction]="formPromise"
|
2022-09-27 00:26:10 +02:00
|
|
|
[formGroup]="formGroup"
|
2022-02-02 16:32:06 +01:00
|
|
|
attr.aria-hidden="{{ showingModal }}"
|
2021-12-15 23:32:00 +01:00
|
|
|
>
|
2022-02-02 16:32:06 +01:00
|
|
|
<div id="content" class="content">
|
|
|
|
<img class="logo-image" alt="Bitwarden" />
|
|
|
|
<p class="lead">{{ "loginOrCreateNewAccount" | i18n }}</p>
|
2022-10-28 20:54:55 +02:00
|
|
|
<!-- start email -->
|
|
|
|
<ng-container *ngIf="!validatedEmail; else loginPage">
|
|
|
|
<div class="box last">
|
|
|
|
<div class="box-content">
|
|
|
|
<div class="box-content-row" appBoxRow>
|
|
|
|
<label for="email">{{ "emailAddress" | i18n }}</label>
|
2022-02-02 16:32:06 +01:00
|
|
|
<input
|
2022-10-28 20:54:55 +02:00
|
|
|
id="email"
|
|
|
|
type="email"
|
|
|
|
formControlName="email"
|
|
|
|
appInputVerbatim="false"
|
2022-11-02 16:23:29 +01:00
|
|
|
(keyup.enter)="continue()"
|
2022-02-02 16:32:06 +01:00
|
|
|
/>
|
|
|
|
</div>
|
2022-10-28 20:54:55 +02:00
|
|
|
</div>
|
|
|
|
<div class="box-footer" *ngIf="selfHostedDomain">
|
2023-03-21 11:28:15 +01:00
|
|
|
{{ "loggingInTo" | i18n : selfHostedDomain }}
|
2022-10-28 20:54:55 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="checkbox remember-email">
|
|
|
|
<label for="rememberEmail">
|
|
|
|
<input
|
|
|
|
id="rememberEmail"
|
|
|
|
type="checkbox"
|
|
|
|
name="rememberEmail"
|
|
|
|
formControlName="rememberEmail"
|
|
|
|
/>
|
|
|
|
{{ "rememberEmail" | i18n }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="buttons with-rows">
|
|
|
|
<div class="buttons-row">
|
|
|
|
<button type="button" class="btn primary block" (click)="continue()">
|
|
|
|
{{ "continue" | i18n }}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="sub-options">
|
|
|
|
<p class="no-margin">{{ "newAroundHere" | i18n }}</p>
|
|
|
|
<button type="button" class="text text-primary" routerLink="/register">
|
|
|
|
{{ "createAccount" | i18n }}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
<ng-template [formGroup]="formGroup" #loginPage>
|
|
|
|
<div class="box last">
|
|
|
|
<div class="box-content">
|
|
|
|
<div class="box-content-row box-content-row-flex" appBoxRow>
|
|
|
|
<div class="row-main">
|
|
|
|
<label for="masterPassword">{{ "masterPass" | i18n }}</label>
|
|
|
|
<input
|
|
|
|
id="masterPassword"
|
|
|
|
type="{{ showPassword ? 'text' : 'password' }}"
|
|
|
|
class="monospaced"
|
|
|
|
formControlName="masterPassword"
|
|
|
|
appInputVerbatim
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div class="action-buttons">
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="row-btn"
|
|
|
|
appStopClick
|
|
|
|
appA11yTitle="{{ 'toggleVisibility' | i18n }}"
|
|
|
|
[attr.aria-pressed]="showPassword"
|
|
|
|
(click)="togglePassword()"
|
|
|
|
>
|
|
|
|
<i
|
|
|
|
class="bwi bwi-lg"
|
|
|
|
aria-hidden="true"
|
|
|
|
[ngClass]="{ 'bwi-eye': !showPassword, 'bwi-eye-slash': showPassword }"
|
|
|
|
></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="box last" [hidden]="!showCaptcha()">
|
|
|
|
<div class="box-content">
|
|
|
|
<iframe id="hcaptcha_iframe" style="margin-top: 20px"></iframe>
|
|
|
|
<div class="box-content-row">
|
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
|
2022-10-28 20:54:55 +02:00
|
|
|
class="btn block"
|
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
|
|
|
type="button"
|
2022-10-28 20:54:55 +02:00
|
|
|
routerLink="/accessibility-cookie"
|
|
|
|
(click)="setFormValues()"
|
2022-02-02 16:32:06 +01:00
|
|
|
>
|
2022-10-28 20:54:55 +02:00
|
|
|
<i class="bwi bwi-universal-access" aria-hidden="true"></i>
|
|
|
|
{{ "loadAccessibilityCookie" | i18n }}
|
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>
|
2022-02-02 16:32:06 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-04 01:20:29 +01:00
|
|
|
</div>
|
2022-10-28 20:54:55 +02:00
|
|
|
<div class="buttons with-rows">
|
|
|
|
<div class="buttons-row">
|
|
|
|
<button type="submit" class="btn primary block" [disabled]="form.loading">
|
|
|
|
<b [hidden]="form.loading"
|
|
|
|
><i class="bwi bwi-sign-in" aria-hidden="true"></i>
|
|
|
|
{{ "loginWithMasterPassword" | i18n }}</b
|
|
|
|
>
|
|
|
|
<i class="bwi bwi-spinner bwi-spin" [hidden]="!form.loading" aria-hidden="true"></i>
|
2022-06-09 14:14:31 +02:00
|
|
|
</button>
|
2020-09-15 20:45:03 +02:00
|
|
|
</div>
|
2023-02-05 16:57:21 +01:00
|
|
|
<div class="buttons-row" *ngIf="showLoginWithDevice">
|
|
|
|
<button type="button" class="btn block" (click)="startPasswordlessLogin()">
|
|
|
|
<i class="bwi bwi-mobile" aria-hidden="true"></i>
|
|
|
|
{{ "logInWithAnotherDevice" | i18n }}
|
|
|
|
</button>
|
|
|
|
</div>
|
2022-10-28 20:54:55 +02:00
|
|
|
<div class="buttons-row">
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
(click)="launchSsoBrowser('desktop', 'bitwarden://sso-callback')"
|
|
|
|
class="btn block"
|
2022-02-02 16:32:06 +01:00
|
|
|
>
|
2022-11-02 20:52:49 +01:00
|
|
|
<i class="bwi bwi-provider" aria-hidden="true"></i>
|
|
|
|
{{ "enterpriseSingleSignOn" | i18n }}
|
2022-10-28 20:54:55 +02:00
|
|
|
</button>
|
|
|
|
</div>
|
2022-02-02 16:32:06 +01:00
|
|
|
</div>
|
2022-10-28 20:54:55 +02:00
|
|
|
<div class="sub-options">
|
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"
|
2022-10-28 20:54:55 +02:00
|
|
|
class="text text-primary password-hint-btn"
|
|
|
|
routerLink="/hint"
|
|
|
|
(click)="setFormValues()"
|
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
|
|
|
>
|
2022-10-28 20:54:55 +02:00
|
|
|
{{ "getMasterPasswordHint" | i18n }}
|
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>
|
2022-10-28 20:54:55 +02:00
|
|
|
<div>
|
|
|
|
<p class="no-margin">{{ "loggingInAs" | i18n }} {{ loggedEmail }}</p>
|
|
|
|
<a [routerLink]="[]" (click)="toggleValidateEmail(false)">{{ "notYou" | i18n }}</a>
|
|
|
|
</div>
|
2022-02-02 16:32:06 +01:00
|
|
|
</div>
|
2022-10-28 20:54:55 +02:00
|
|
|
</ng-template>
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
2022-02-02 16:32:06 +01:00
|
|
|
</form>
|
|
|
|
</div>
|
2018-02-02 18:31:21 +01:00
|
|
|
<ng-template #environment></ng-template>
|