File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -788,9 +788,14 @@ private function validateToken($token, $user = null) {
788788
789789 // Check if login names match
790790 if (!is_null ($ user ) && $ dbToken ->getLoginName () !== $ user ) {
791- // TODO: this makes it imposssible to use different login names on browser and client
791+ // TODO: this makes it impossible to use different login names on browser and client
792792 // e.g. login by e-mail 'user@example.com' on browser for generating the token will not
793793 // allow to use the client token with the login name 'user'.
794+ $ this ->logger ->error ('App token login name does not match ' , [
795+ 'tokenLoginName ' => $ dbToken ->getLoginName (),
796+ 'sessionLoginName ' => $ user ,
797+ ]);
798+
794799 return false ;
795800 }
796801
You can’t perform that action at this time.
0 commit comments