mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-07 07:16:54 +00:00
40 lines
1.2 KiB
HTML
40 lines
1.2 KiB
HTML
|
|
|
||
|
|
{{template "main-top" .}}
|
||
|
|
|
||
|
|
<div class="head">
|
||
|
|
<h1>{{t "RegisterOption.Title"}}</h1>
|
||
|
|
<p>{{t "RegisterOption.Description"}}</p>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<form action="{{ registerOptionUrl }}" method="POST">
|
||
|
|
|
||
|
|
{{ .CSRF }}
|
||
|
|
|
||
|
|
<input type="hidden" name="authRequestID" value="{{ .AuthReqID }}" />
|
||
|
|
|
||
|
|
<div class="actions">
|
||
|
|
{{if .LoginPolicy.AllowUsernamePassword }}
|
||
|
|
<button class="secondary right" name="usernamepassword" value="true" formnovalidate>{{t "RegisterOption.RegisterUsernamePassword"}}</button>
|
||
|
|
{{end}}
|
||
|
|
{{if .LoginPolicy.AllowExternalIDP}}
|
||
|
|
{{ $reqid := .AuthReqID}}
|
||
|
|
{{range $provider := .IDPProviders}}
|
||
|
|
<a href="{{ externalIDPRegisterURL $reqid $provider.IDPConfigID}}" class="button secondary idp-providers">
|
||
|
|
{{$provider.Name}}
|
||
|
|
</a>
|
||
|
|
{{end}}
|
||
|
|
{{end}}
|
||
|
|
<a class="button secondary" href="{{ loginNameChangeUrl .AuthReqID }}">
|
||
|
|
{{t "Actions.Back"}}
|
||
|
|
</a>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
{{template "error-message" .}}
|
||
|
|
</form>
|
||
|
|
|
||
|
|
|
||
|
|
<script src="{{ resourceUrl "scripts/form_submit.js" }}"></script>
|
||
|
|
<script src="{{ resourceUrl "scripts/default_form_validation.js" }}"></script>
|
||
|
|
|
||
|
|
{{template "main-bottom" .}}
|
||
|
|
|