alexlancer / codeigniter-4-restapi-tutorial

MIT License
56 stars 36 forks source link

Suggestion: in the file CustomOauthStorage.php // returns an error if the login is false #1

Closed creativeerector-linnox closed 4 years ago

creativeerector-linnox commented 4 years ago

File: app > libraries > CustomOauthStorage.php

Line 447 -> public function getUser(... ... Add a check if the db query actually returned a user and if not, return false

if (empty($user) ){ return false; }

alexlancer commented 4 years ago

Thank you! Fixed.