[%
#----------------------------------------------------------------------
# Arguments received by this template:
# This list may not be exhaustive, and other parameters may be added or available.
#
# user - User being accessed / updated
SET application_dir = 'cpanel';
SET file = 'invitation';
%]
[% PROCESS '_assets/cjt2_header_include.tt' %]
<div id="content" ng-controller="setPasswordController">
<div id="forms">
<form id="reset_form" name="reset_form" action="/invitation" method="post" novalidate ng-cloak autocomplete="off" ng-submit="inProgress = true;">
<input type="hidden" name="action" value="password">
<input type="hidden" name="user" value="[%user%]">
<input type="hidden" name="debug" value="[%CPANEL.is_debug_mode_enabled() ? '1' : '' %]">
<!-- Password Input -->
<div class="reset-input-group">
<div class="input-req-login">
<label for="password">[% locale.maketext('New Password') %]</label>
</div>
<password name="password"
class="std_textbox"
tabindex="1"
auto-focus
autocomplete="off"
title="[% locale.maketext('Your new password.') %]"
minimum-strength="[% get_required_password_strength( 'virtual' ) %]"
placeholder="[% locale.maketext('Enter your new password') %]"
password="password"
show-meter="true"
show-strength="true"
show-generator="true"
minimum-length="5"
required
generate-minimum-length="5"
generate-maximum-length="18"
generate-button-tab-index="-1"
toggle-view-button-tab-index="-1"
generate-settings-tab-index="-1"
strength-meets-template="[% locale.lextext('This password has a strength of [numf,_1], which meets or exceeds the system requirement of [numf,_2].') %]"
strength-does-not-meet-template="[% locale.lextext('The password has a strength of [numf,_1], but your system requires a strength of [numf,_2].') %]"
password-strength="passwordStrength">
</password>
<ul validation-container field-name="password" ng-cloak>
<li validation-item field-name="password" validation-name="required" id="val-password-required">
[% locale.maketext('You must complete this field.') %]
</li>
<li validation-item field-name="password" validation-name="minlength" id="val-password-minlength">
[% locale.maketext('You must provide a password with at least 5 characters.') %]
</li>
<li validation-item field-name="password" validation-name="minimumPasswordStrength" id="val-password-minimum-strength">
[% locale.maketext('You must provide a stronger password.') %]
</li>
</ul>
</div>
<!-- Password Confirmation -->
<div class="reset-input-group">
<div class="input-req-login">
<label for="confirm">[% locale.maketext('Confirm Password') %]</label>
</div>
<div class="input-field-login icon password-confirm-container">
<input name="confirm"
id="confirm"
type="password"
ng-model="passwordConfirm"
class="std_textbox"
tabindex="2"
placeholder="[% locale.maketext('Enter your new password, again.') %]"
validate-equals="reset_form.password"
required>
</div>
<ul validation-container field-name="confirm" ng-cloak>
<li validation-item field-name="confirm" validation-name="required" id="puzzle-guess-input-required">
[% locale.maketext('You must complete this field.') %]
</li>
<li validation-item field-name="confirm" validation-name="validateEquals" id="val-password-confirm-match">
[% locale.maketext('The passwords do not match.') %]
</li>
</ul>
</div>
<div class="controls">
<div class="login-btn">
<input name="login"
type="submit"
id="login"
value="[% locale.maketext('Set Password') %]"
ng-disabled="!reset_form.$valid || reset_form.$pending || inProgress">
</div>
</div>
</form>
<span id="invitation-set-password">[%# marker for testing%]</span>
</div>
</div>