-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add Api function to get random tag value add key authentication #23
Conversation
|
||
private | ||
def authenticate_user | ||
if api_token_blank || invalid_api_token |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it matter if the api token is blank? All we care is if its valid or not? If they send a blank token then it won't be valid.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has to do with the one set. If there isnt one sent then noneone should be able to access it
|
||
private | ||
def authenticate_user | ||
if api_token_not_set || invalid_api_token |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still don't know why you even care if its blank? Why not just make sure it doesn't match?
Closes #4 & Closes #6