-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpasswordChange.ftl
53 lines (47 loc) · 2.63 KB
/
passwordChange.ftl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[#ftl/]
[#-- @ftlvariable name="application" type="io.fusionauth.domain.Application" --]
[#-- @ftlvariable name="client_id" type="java.util.UUID" --]
[#-- @ftlvariable name="currentUser" type="io.fusionauth.domain.User" --]
[#-- @ftlvariable name="passwordValidationRules" type="io.fusionauth.domain.PasswordValidationRules" --]
[#-- @ftlvariable name="showCaptcha" type="boolean" --]
[#-- @ftlvariable name="tenant" type="io.fusionauth.domain.Tenant" --]
[#-- @ftlvariable name="tenantId" type="java.util.UUID" --]
[#import "../_helpers.ftl" as helpers/]
[@helpers.html]
[@helpers.head]
[@helpers.captchaScripts showCaptcha=showCaptcha captchaMethod=tenant.captchaConfiguration.captchaMethod siteKey=tenant.captchaConfiguration.siteKey/]
[#-- Custom <head> code goes here --]
[/@helpers.head]
[@helpers.body]
[@helpers.header]
[#-- Custom header code goes here --]
[/@helpers.header]
[@helpers.main title=theme.message('password-change-title')]
<form action="${request.contextPath}/password/change" method="POST" class="full">
[@helpers.oauthHiddenFields/]
[@helpers.hidden name="changePasswordId"/]
[#-- Show the Password Validation Rules if there is a field error for 'password' --]
[#if (fieldMessages?keys?seq_contains("password")!false) && passwordValidationRules??]
[@helpers.passwordRules passwordValidationRules/]
[/#if]
<fieldset>
[@helpers.input type="password" name="password" autocomplete="new-password" id="password" placeholder=theme.message('password') leftAddon="lock" autofocus=true required=true/]
[@helpers.input type="password" name="passwordConfirm" autocomplete="new-password" id="passwordConfirm" placeholder=theme.message('passwordConfirm') leftAddon="lock" required=true/]
[@helpers.captchaBadge showCaptcha=showCaptcha captchaMethod=tenant.captchaConfiguration.captchaMethod siteKey=tenant.captchaConfiguration.siteKey/]
</fieldset>
[#-- Show checkbox for remember me - we are in an OAuth2 workflow --]
[#if client_id?has_content]
[@helpers.input id="rememberDevice" type="checkbox" name="rememberDevice" label=theme.message('remember-device') value="true" uncheckedValue="false"]
<i class="fa fa-info-circle" data-tooltip="${theme.message('{tooltip}remember-device')}"></i>[#t/]
[/@helpers.input]
[/#if]
<div class="form-row">
[@helpers.button text=theme.message('submit')/]
</div>
</form>
[/@helpers.main]
[@helpers.footer]
[#-- Custom footer code goes here --]
[/@helpers.footer]
[/@helpers.body]
[/@helpers.html]