forked from mfreiholz/iF.SVNAdmin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuserchangepass.php
More file actions
34 lines (29 loc) · 815 Bytes
/
userchangepass.php
File metadata and controls
34 lines (29 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
include("include/config.inc.php");
$appEngine->forwardInvalidModule(!$appEngine->isUserEditActive());
$appEngine->checkUserAuthentication(true, ACL_MOD_USER, ACL_ACTION_CHANGEPASS);
$appTR->loadModule("userchangepass");
// Action handling.
// Form request to create the user
$create = check_request_var('changepass');
if ($create)
{
$appEngine->handleAction('change_password');
}
$encUsername = get_request_var("username");
$username = rawurldecode($encUsername);
$sessUser = $appEngine->getSessionUsername();
if ($sessUser != NULL)
{
if ($username == NULL)
{
$username = $sessUser;
}
if ($sessUser != $username)
{
$appEngine->checkUserAuthentication(true, ACL_MOD_USER, ACL_ACTION_CHANGEPASS_OTHER);
}
}
SetValue("Username", $username);
ProcessTemplate("user/userchangepassword.html.php");
?>