| | |
| | | 'subtype' => 'password', |
| | | 'label' => __('New Password', 'jvb'), |
| | | 'required' => true, |
| | | 'autocomplete'=> 'new-password' |
| | | ], |
| | | 'pass2' => [ |
| | | 'type' => 'text', |
| | | 'subtype' => 'password', |
| | | 'label' => __('Confirm Password', 'jvb'), |
| | | 'required' => true, |
| | | 'autocomplete'=> 'new-password' |
| | | ], |
| | | ]; |
| | | break; |
| | |
| | | $additionalInputs, |
| | | $fields, |
| | | $turnstile, |
| | | $this->labels['submit']??'Login', |
| | | $this->labels['submit']??$this->determineSubmit($action), |
| | | $magicLink |
| | | ); |
| | | } |
| | | protected function determineSubmit(string $action):string |
| | | { |
| | | return match($action) { |
| | | 'rp','resetpass' => 'Reset Password', |
| | | 'register' => 'Register', |
| | | 'lostpassword' => 'Send me a reset link', |
| | | default => 'Login', |
| | | }; |
| | | } |
| | | protected function renderHeader():void |
| | | { |
| | | ?> |