Elgg  Version 3.0
forgotten_password.php
Go to the documentation of this file.
1 <?php
6 $title = elgg_echo('user:password:lost');
7 
8 $hash_missing_username = elgg_get_session()->get('forgotpassword:hash_missing');
10  elgg_get_session()->remove('forgotpassword:hash_missing');
11  register_error(elgg_echo('user:password:hash_missing'));
12 }
13 
14 $form_vars = ['class' => 'elgg-form-account'];
16 $content = elgg_view_form('user/requestnewpassword', $form_vars, $body_vars);
17 
18 $shell = elgg_get_config('walled_garden') ? 'walled_garden' : 'default';
19 
20 $body = elgg_view_layout('default', [
21  'content' => $content,
22  'title' => $title,
23  'sidebar' => false,
24 ]);
$title
Assembles and outputs the forgotten password page.
elgg_get_session()
Gets Elgg&#39;s session object.
Definition: sessions.php:20
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg_view_page($title, $body, $page_shell= 'default', $vars=[])
Assembles and outputs a full page.
Definition: views.php:360
if($hash_missing_username) $form_vars
elgg_view_form($action, $form_vars=[], $body_vars=[])
Definition: views.php:1318
elgg echo
Translates a string.
Definition: languages.js:43
$hash_missing_username
elgg register_error
Wrapper function for system_messages.
Definition: elgglib.js:391
elgg_view_layout($layout_name, $vars=[])
Displays a layout with optional parameters.
Definition: views.php:593
elgg_get_config($name, $default=null)
Get an Elgg configuration value.