File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed
Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ class ForgotPasswordAction extends BaseAction
2222 'scope ' => 'entity ' ,
2323 'findConfig ' => [],
2424 'findMethod ' => 'all ' ,
25+ 'tokenField ' => 'token ' ,
2526 'messages ' => [
2627 'success ' => [
2728 'text ' => 'A recovery email has been sent successfully '
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ class VerifyAction extends BaseAction
2626 'enabled ' => true ,
2727 'scope ' => 'entity ' ,
2828 'findMethod ' => 'all ' ,
29+ 'tokenField ' => 'token ' ,
2930 'saveMethod ' => 'save ' ,
3031 'relatedModels ' => true ,
3132 'saveOptions ' => [],
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ protected function _verify($token)
4848 $ this ->findMethod (),
4949 [
5050 'token ' => $ token ,
51- 'conditions ' => [$ this ->_table ()->aliasField (' token ' ) => $ token ]
51+ 'conditions ' => [$ this ->_table ()->aliasField ($ this -> config ( ' tokenField ' ) ) => $ token ]
5252 ]
5353 ),
5454 ]);
You can’t perform that action at this time.
0 commit comments