mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 22:43:03 +00:00
63 lines
2.5 KiB
HTML
63 lines
2.5 KiB
HTML
<ds-loading *ngIf="(loading | async) || (isAuthenticated | async)" class="m-5"></ds-loading>
|
|
<form *ngIf="!(loading | async) && !(isAuthenticated | async)" class="form-login px-4 py-3" (ngSubmit)="submit()"
|
|
[formGroup]="form" novalidate>
|
|
<label for="inputEmail" class="sr-only">{{"login.form.email" | translate}}</label>
|
|
<input id="inputEmail"
|
|
autocomplete="off"
|
|
autofocus
|
|
class="form-control form-control-lg position-relative"
|
|
formControlName="email"
|
|
placeholder="{{'login.form.email' | translate}}"
|
|
required
|
|
type="email">
|
|
<label for="inputPassword" class="sr-only">{{"login.form.password" | translate}}</label>
|
|
<input id="inputPassword"
|
|
autocomplete="off"
|
|
class="form-control form-control-lg position-relative mb-3"
|
|
placeholder="{{'login.form.password' | translate}}"
|
|
formControlName="password"
|
|
required
|
|
type="password">
|
|
<div *ngIf="(error | async) && hasError" class="alert alert-danger" role="alert"
|
|
@fadeOut>{{ (error | async) | translate }}</div>
|
|
<div *ngIf="(message | async) && hasMessage" class="alert alert-info" role="alert"
|
|
@fadeOut>{{ (message | async) | translate }}</div>
|
|
|
|
<button class="btn btn-lg btn-primary btn-block mt-3" type="submit"
|
|
[disabled]="!form.valid">{{"login.form.submit" | translate}}</button>
|
|
|
|
<br>
|
|
|
|
<!--
|
|
<div *ngIf="(hasSsoLoginUrl | async)">
|
|
<!–<div class="text-center mt-2"><span class="align-middle">{{"login.form.or-divider" | translate}}</span></div>–>
|
|
<a class="btn btn-lg btn-primary btn-block mt-2" [href]="(ssoLoginUrl | async)"
|
|
role="button">{{"login.form.ssoLogin" | translate}}</a>
|
|
</div>-->
|
|
|
|
|
|
<!--Change href to "https://dspace.hostname/Shibboleth.sso/Login?target=https://dspace.hostname/shibboleth"
|
|
to make this work with your Shibboleth IdentityProvider and Service Provider. dspace.hostname = as in the
|
|
backend config file "dspace.cfg". Do not change the following parts of href:
|
|
"/Shibboleth.sso/Login?target=" and "/shibboleth" at the end of href -->
|
|
<!-- <br>
|
|
<div>
|
|
<a class="btn btn-lg btn-primary btn-block mt-2"
|
|
href="https://fis.tiss.tuwien.ac.at/Shibboleth.sso/Login?target=https://fis.tiss.tuwien.ac.at/shibboleth"
|
|
role="button"
|
|
>HardCoded Shibb</a>
|
|
</div>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="dropdown-divider"></div>
|
|
<a class="dropdown-item" href="#">{{"login.form.new-user" | translate}}</a>
|
|
<a class="dropdown-item" href="#">{{"login.form.forgot-password" | translate}}</a>
|
|
</form>
|
|
|
|
|