-
Notifications
You must be signed in to change notification settings - Fork 11.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[auth:api ] without api token on request , system allows to login #14552
Comments
Never came across this issue. Would need a more concrete example that depicts this issue clearly. |
Auth.php
` I use default auth settings. No any custom settings If I send ?api_token=(no_value_here) then system throw login error message. But If I send the request without the key(api_token) system shows logged in message |
Found the issue. I have set null for api_token in database. So system take null user record and logged in . I set the field to not null and unique.. Anyway thanks for your comment. |
@subakarank i tried this with api_token set as null, and tried the following code:
If i passed a null |
@srmklive Thanks for your reply.. null request against with null in database .. then it is true and then retrieve the user information. |
@subakarank i didn't do any validation. I can't replicate the issue you are reporting. |
Did you set null for any one of the user's api_token? pls set null then try |
@subakarank I am able to replicate the issue you are reporting. |
on request don't send the query name api_token . then run the following query
|
If you think everything are fine, then I close this issue. Am sure that I don't do any additional settings for auth. I found that issue that it is the null value. After I fix validation and null value then it works fine for me. Anyway thanks for your comments and remark |
@srmklive |
http://localhost:8080/laravel/user/show. Here I never send api_token=xxxxxx on the request. but system print "logged in " messge
how is it possible?
The text was updated successfully, but these errors were encountered: