mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 06:57:03 +03:00
Small fixes
This commit is contained in:
parent
3246b2c81f
commit
66c3307291
14 changed files with 105 additions and 31 deletions
|
|
@ -4811,12 +4811,14 @@ class Actions
|
|||
*/
|
||||
public function DoChangePassword()
|
||||
{
|
||||
$mResult = false;
|
||||
|
||||
$oAccount = $this->getAccountFromToken();
|
||||
if ($oAccount)
|
||||
{
|
||||
try
|
||||
{
|
||||
$this->ChangePasswordProvider()->ChangePassword(
|
||||
$mResult = $this->ChangePasswordProvider()->ChangePassword(
|
||||
$oAccount,
|
||||
$this->GetActionParam('PrevPassword', ''),
|
||||
$this->GetActionParam('NewPassword', '')
|
||||
|
|
@ -4831,7 +4833,7 @@ class Actions
|
|||
}
|
||||
}
|
||||
|
||||
return $this->TrueResponse(__FUNCTION__);
|
||||
return $this->DefaultResponse(__FUNCTION__, $mResult);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue