bitwarden-estensione-browser/src/app/accounts/login.component.html

54 lines
2.9 KiB
HTML
Raw Normal View History

<form id="login-page" #form (ngSubmit)="submit()" [appApiAction]="formPromise" attr.aria-hidden="{{showingModal}}">
2018-01-31 20:19:21 +01:00
<div class="content">
2018-05-31 04:28:04 +02:00
<img class="logo-image" alt="Bitwarden">
2018-02-02 04:59:04 +01:00
<p class="lead">{{'loginOrCreateNewAccount' | i18n}}</p>
2018-01-31 20:19:21 +01:00
<div class="box last">
<div class="box-content">
<div class="box-content-row" appBoxRow>
<label for="email">{{'emailAddress' | i18n}}</label>
2018-07-13 15:29:05 +02:00
<input id="email" type="text" name="Email" [(ngModel)]="email" required>
2018-01-31 20:19:21 +01:00
</div>
<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'}}" name="MasterPassword"
2019-02-21 22:53:32 +01:00
class="monospaced" [(ngModel)]="masterPassword" required>
</div>
<div class="action-buttons">
2019-04-03 06:04:42 +02:00
<a class="row-btn" href="#" appStopClick appBlurClick role="button"
2019-04-02 04:43:42 +02:00
appA11yTitle="{{'toggleVisibility' | i18n}}" (click)="togglePassword()">
2019-04-02 04:56:28 +02:00
<i class="fa fa-lg" aria-hidden="true"
[ngClass]="{'fa-eye': !showPassword, 'fa-eye-slash': showPassword}"></i>
</a>
</div>
2018-01-30 23:24:02 +01:00
</div>
</div>
2018-01-31 20:19:21 +01:00
</div>
2020-09-15 20:45:03 +02:00
<div class="buttons with-rows">
<div class="buttons-row">
<button type="submit" class="btn primary block" [disabled]="form.loading" appBlurClick>
<b [hidden]="form.loading"><i class="fa fa-sign-in" aria-hidden="true"></i> {{'logIn' | i18n}}</b>
<i class="fa fa-spinner fa-spin" [hidden]="!form.loading" aria-hidden="true"></i>
</button>
<a routerLink="/register" class="btn block">
<i class="fa fa-pencil-square-o" aria-hidden="true"></i> {{'createAccount' | i18n}}
</a>
</div>
<div class="buttons-row">
<a (click)="launchSsoBrowser('desktop', 'bitwarden://sso-callback')" class="btn block">
<i class="fa fa-bank" aria-hidden="true"></i> {{'enterpriseSingleSignOn' | i18n}}
</a>
</div>
merge sso feature branch (#523) * Update jslib (101c568 -> 14b01f2) (#506) * Update jslib (14b01f2 -> 1513b25) (#510) * [jslib] Update (1513b25 -> 7c3a9d6) (#516) * update jslib (1513b25 -> 7c3a9d6) * Updated call to constructor super * [SSO] Added SSO flows & functionality (#513) * update jslib * bump version * Added sso button (wip) * Added sso & change password // Added modules/routes // Added strings for localization * Added password strength comp // reverted login route * Updated sso component to send client id // added routing for sso // added crypto function to services module provider list * Added deep linking * First round of UI updates // Added sso browser launching // Added missing strings * Updated UI and added missing strings * Removed extra change password style * Let constructor for WindowMain handle default width/height * Prepared for jslib update * Update jslib (1513b25 -> 7c3a9d6) * Update login super * Added params for launchSsoBrowser function * Update jslib (7c3a9d6 -> 4203937) * Added missing strings, removed unnecessary class param * Upgrade TypeScript (#517) * Updated password score // Update styles * Removed password-strength component files * Cleaned up module class // Fixed UL/LI formatting issues * Use exisiting loading string // removed new string * Update jslib (4203937 -> 9957125) * Updated class to perform new submit actions * Upgrade Angular (#520) * di resolution for CryptoFunctionServiceAbstraction * Update jslib (9957125 -> 5d874d0) (#521) * Updated change password flow to match web * Updated callout style Co-authored-by: Kyle Spearrin <kyle.spearrin@gmail.com> Co-authored-by: Oscar Hinton <hinton.oscar@gmail.com> Co-authored-by: Vincent Salucci <26154748+vincentsalucci@users.noreply.github.com> Co-authored-by: Oscar Hinton <hinton.oscar@gmail.com>
2020-08-21 15:50:36 +02:00
</div>
2018-01-31 20:19:21 +01:00
<div class="sub-options">
2018-01-31 23:06:14 +01:00
<a routerLink="/hint">{{'getMasterPasswordHint' | i18n}}</a>
2018-01-31 20:19:21 +01:00
</div>
<a href="#" appStopClick (click)="settings()" class="settings-icon" attr.aria-label="{{'settings' | i18n}}">
<i class="fa fa-cog fa-lg" aria-hidden="true"></i><span
aria-hidden="true">&nbsp;{{'settings' | i18n}}</span>
2018-01-31 20:19:21 +01:00
</a>
</div>
</form>
2018-02-02 18:31:21 +01:00
<ng-template #environment></ng-template>