We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4152cd6 + 6a2c9d7 commit 44865e2Copy full SHA for 44865e2
src/Entities/User.php
@@ -67,6 +67,19 @@ public function setPassword(string $password)
67
$config->hashAlgorithm,
68
$hashOptions
69
);
70
+
71
+ /*
72
+ Set these vars to null in case a reset password was asked.
73
+ Scenario:
74
+ user (a *dumb* one with short memory) requests a
75
+ reset-token and then does nothing => asks the
76
+ administrator to reset his password.
77
+ User would have a new password but still anyone with the
78
+ reset-token would be able to change the password.
79
+ */
80
+ $this->attributes['reset_hash'] = null;
81
+ $this->attributes['reset_time'] = null;
82
+ $this->attributes['reset_start_time'] = null;
83
}
84
85
/**
0 commit comments