Fix check username in API (#1957)

* Fix check username in API

Fix https://github.com/FreshRSS/FreshRSS/issues/1955

* Changelog 1955

https://github.com/FreshRSS/FreshRSS/issues/1955
https://github.com/FreshRSS/FreshRSS/pull/1957
This commit is contained in:
Alexandre Alapetite authored and GitHub committed 2018-07-08 11:22:51 +02:00
1 parent e0bc6a2855
commit 82ac9454dd
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -6,6 +6,7 @@
* Update Docker image to Alpine 3.8 with PHP 7.2 [#1956](https://github.com/FreshRSS/FreshRSS/pull/1956)
* Bug fixing
* Fix bugs when searching with special characters (e.g. preventing marking as read) [#1944](https://github.com/FreshRSS/FreshRSS/issues/1944)
* Fix username check in API to allow underscores [#1955](https://github.com/FreshRSS/FreshRSS/issues/1955)
* Mics.
* Auto-login after self user creation [#1928](https://github.com/FreshRSS/FreshRSS/issues/1928)
+1 -1
View File
@@ -176,7 +176,7 @@ function authorizationToUser() {
}
function clientLogin($email, $pass) { //http://web.archive.org/web/20130604091042/http://undoc.in/clientLogin.html
if (ctype_alnum($email)) {
if (FreshRSS_user_Controller::checkUsername($email)) {
if (!function_exists('password_verify')) {
include_once(LIB_PATH . '/password_compat.php');
}