nextcloud/core/Controller
Christoph Wurst f28a23cdd8 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-29 07:50:52 +00:00
..
AppPasswordController.php Allow rotation of apppasswords 2019-08-27 13:46:06 +02:00
AutoCompleteController.php Add an event to the Autocomplete Controller to allow to filter the results 2019-02-26 15:32:14 +01:00
AvatarController.php Implement guest avatar endpoint 2019-02-07 14:23:16 +01:00
CSRFTokenController.php Add CSRF token controller to retrieve the current CSRF token 2018-03-08 16:48:50 +01:00
ClientFlowLoginController.php fix oauth client redirect 2019-10-07 10:05:03 +00:00
ClientFlowLoginV2Controller.php Login flow V2 2019-02-25 07:24:50 +01:00
CollaborationResourcesController.php Make the endpoint more robust against faulty resource providers 2019-03-28 09:26:38 +01:00
ContactsMenuController.php Change @georgehrke's email 2017-11-06 20:38:59 +01:00
CssController.php Don't require Same Site Cookies on assets 2018-10-17 09:24:21 +02:00
GuestAvatarController.php Implement guest avatar endpoint 2019-02-07 14:23:16 +01:00
JsController.php Don't require Same Site Cookies on assets 2018-10-17 09:24:21 +02:00
LoginController.php Trim the login name 2019-11-29 07:50:52 +00:00
LostController.php Stop if there is no encrypted token 2019-08-18 19:58:50 +02:00
NavigationController.php Fix app navigation controller to return an array 2018-07-25 13:50:46 +02:00
OCJSController.php expose capabilities in js 2018-02-27 12:29:25 +01:00
OCSController.php Add extendedSupport to Subscription 2019-06-17 16:36:23 +02:00
PreviewController.php Update PreviewController 2019-07-26 17:37:11 +02: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 Fall back to black for non-color values 2019-06-20 15:23:06 +02:00
TwoFactorChallengeController.php Harden middleware check 2019-10-25 14:34:41 +00:00
UserController.php Update license headers 2017-11-06 16:56:19 +01:00
WalledGardenController.php Add 204 endpoint 2017-11-02 10:30:16 +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