ID | Project | Category | Submitted / Last Updated |
---|---|---|---|
01444 | UserSpice | Triage | 2021-12-23 19:51:43 / 2022-02-01 06:32:48 |
Reported | Banging Heads | Assigned To | Unassigned |
Priority | none | Reported | 5.3.9 |
Status | closed fixed | Resolution Version and Commit | 5.4.0 |
Summary | login.php states you can use the $validated variable but it is unused | ||
Description |
x https://github.com/mudmin/UserSpice5/blob/bf7340e8ccb3e2719ef4a1d2f09df944b51b26b6/users/login.php#L50 $validated = $validation->passed(); // Set $validated to False to kill validation, or run additional checks, in your post hook But then line 56 uses $validation->passed() again. if ($validation->passed()) { https://github.com/mudmin/UserSpice5/blob/bf7340e8ccb3e2719ef4a1d2f09df944b51b26b6/users/login.php#L56 So likely you're looking to change line 56 to: if ($validated) { |
xxxxxxxxxx
Occasionally you may want to perform some action between form validation and the actual login. You can now do that with a login.php hook in the post position.
xxxxxxxxxx
Thanks BH