Elgg  Version 3.0
change_password.php
Go to the documentation of this file.
1 <?php
10 
13 
15 
16 // don't check code here to avoid automated attacks
17 if (!$user instanceof ElggUser) {
18  throw new \Elgg\EntityNotFoundException(elgg_echo('user:changepassword:unknown_user'));
19 }
20 
21 $title = elgg_echo('changepassword');
22 
24  'guid' => $user_guid,
25  'code' => $code,
26 ];
27 $content = elgg_view_form('user/changepassword', ['class' => 'elgg-form-account'], $params);
28 
29 $shell = elgg_get_config('walled_garden') ? 'walled_garden' : 'default';
30 
31 $body = elgg_view_layout('default', [
32  'content' => $content,
33  'title' => $title,
34  'sidebar' => false,
35 ]);
get_user($guid)
Get a user object from a GUID.
Definition: users.php:40
elgg_signed_request_gatekeeper()
Validates if the HMAC signature of the current request is valid Issues 403 response if signature is i...
Definition: elgglib.php:1105
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
elgg_view_form($action, $form_vars=[], $body_vars=[])
Definition: views.php:1318
get_input($variable, $default=null, $filter_result=true)
Get some input from variables passed submitted through GET or POST.
Definition: input.php:27
elgg echo
Translates a string.
Definition: languages.js:43
if(!$user instanceof ElggUser) $title
$user_guid
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.
$content