Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
357465ea
Commit
357465ea
authored
10 years ago
by
Lukas Reschke
Browse files
Options
Downloads
Patches
Plain Diff
Add "postPasswordReset" hook
parent
767b08c6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/lostpassword/controller/lostcontroller.php
+8
-4
8 additions, 4 deletions
core/lostpassword/controller/lostcontroller.php
with
8 additions
and
4 deletions
core/lostpassword/controller/lostcontroller.php
+
8
−
4
View file @
357465ea
...
...
@@ -22,6 +22,8 @@ use OCP\Security\StringUtils;
/**
* Class LostController
*
* Successfully changing a password will emit the post_passwordReset hook.
*
* @package OC\Core\LostPassword\Controller
*/
class
LostController
extends
Controller
{
...
...
@@ -47,13 +49,13 @@ class LostController extends Controller {
* @param string $appName
* @param IRequest $request
* @param IURLGenerator $urlGenerator
* @param $userManager
* @param $defaults
* @param
IUserManager
$userManager
* @param
OC_Defaults
$defaults
* @param IL10N $l10n
* @param IConfig $config
* @param ISecureRandom $secureRandom
* @param $from
* @param $isDataEncrypted
* @param
string
$from
* @param
string
$isDataEncrypted
*/
public
function
__construct
(
$appName
,
IRequest
$request
,
...
...
@@ -154,6 +156,8 @@ class LostController extends Controller {
throw
new
\Exception
();
}
\OC_Hook
::
emit
(
'\OC\Core\LostPassword\Controller\LostController'
,
'post_passwordReset'
,
array
(
$userId
));
$this
->
config
->
deleteUserValue
(
$userId
,
'owncloud'
,
'lostpassword'
);
@
\OC_User
::
unsetMagicInCookie
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment