Elgg  Version master
forgotten_password.php
Go to the documentation of this file.
1 <?php
6 $hash_missing_username = elgg_get_session()->get('forgotpassword:hash_missing');
8  elgg_get_session()->remove('forgotpassword:hash_missing');
9  elgg_register_error_message(elgg_echo('user:password:hash_missing'));
10 }
11 
13  'class' => 'elgg-form-account',
14 ];
16 
17 $shell = elgg_get_config('walled_garden') ? 'walled_garden' : 'default';
18 
19 echo elgg_view_page(elgg_echo('user:password:lost'), [
20  'content' => elgg_view_form('user/requestnewpassword', $form_vars, $body_vars),
21  'sidebar' => false,
22  'filter' => false,
23 ], $shell);
if($hash_missing_username) $body_vars
elgg_view_form(string $action, array $form_vars=[], array $body_vars=[])
Definition: views.php:1033
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
elgg_get_session()
Gets Elgg&#39;s session object.
Definition: sessions.php:15
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
if($hash_missing_username) $form_vars
elgg_view_page(string $title, string|array $body, string $page_shell= 'default', array $vars=[])
Assembles and outputs a full page.
Definition: views.php:235
$hash_missing_username
Assembles and outputs the forgotten password page.
elgg_register_error_message(string|array $options)
Registers a error system message.
Definition: elgglib.php:62