nextcloud/core/Controller
Christoph Wurst 81e35d0c8a
Trim the login name
Otherwise we keep on using it with leading or trailing whitespaces for
app tokens and other logic. The reason this doesn't throw an error
immediately with local users is that (My)SQL compares strings regardless
of their padding by default. So we look up 'uid ' and get the row for
the user 'uid'.
Other back-ends will lead to a hard error, though, and the user is
unable to log out as all request fail.

Ref https://stackoverflow.com/a/10495807/2239067

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-11-28 20:52:05 +01:00
..
AppPasswordController.php Allow rotation of apppasswords 2019-08-27 13:46:06 +02:00
AutoCompleteController.php Fix autocomplete suggestions with numeric user ids 2019-11-26 09:19:49 +01:00
AvatarController.php Some php-cs fixes 2019-11-22 20:52:10 +01:00
CSRFTokenController.php Add CSRF token controller to retrieve the current CSRF token 2018-03-08 16:48:50 +01:00
ClientFlowLoginController.php Check getRedirectUri() for queries 2019-11-13 14:05:03 +01:00
ClientFlowLoginV2Controller.php Login flow V2 2019-02-25 07:24:50 +01:00
CollaborationResourcesController.php Some php-cs fixes 2019-11-22 20:52:10 +01:00
ContactsMenuController.php Change @georgehrke's email 2017-11-06 20:38:59 +01:00
CssController.php Some php-cs fixes 2019-11-22 20:52:10 +01:00
GuestAvatarController.php Implement guest avatar endpoint 2019-02-07 14:23:16 +01:00
JsController.php Some php-cs fixes 2019-11-22 20:52:10 +01:00
LoginController.php Trim the login name 2019-11-28 20:52:05 +01:00
LostController.php Some php-cs fixes 2019-11-22 20:52:10 +01:00
NavigationController.php Some php-cs fixes 2019-11-22 20:52:10 +01:00
OCJSController.php Some php-cs fixes 2019-11-22 20:52:10 +01:00
OCSController.php Some php-cs fixes 2019-11-22 20:52:10 +01:00
PreviewController.php Some php-cs fixes 2019-11-22 20:52:10 +01:00
SearchController.php Move search to proper Controller 2018-03-09 14:36:48 +01:00
SetupController.php Block install without CAN_INSTALL file 2019-04-11 09:32:33 +02:00
SvgController.php Merge pull request #18079 from nextcloud/fixes/phpcs 2019-11-25 14:07:00 +01:00
TwoFactorChallengeController.php Harden middleware check 2019-10-25 15:44:37 +02:00
UserController.php Some php-cs fixes 2019-11-22 20:52:10 +01:00
WalledGardenController.php Some php-cs fixes 2019-11-22 20:52:10 +01:00
WhatsNewController.php wire the frontend 2018-07-05 20:29:00 +02:00
WipeController.php Remote wipe support 2019-05-20 20:50:27 +02:00