-
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
AuthSetPassword Function is able to create a new User #122
Comments
Blocks creation of new Users with the AuthSetPassword function by returning an error and printing out a Stacktrace. See #122 Also added some Documentation.
e234d35: This Function now throws an Error and Prints a Stacktrace if it would otherwise create a new user. |
This seems to be in Use at 2 locations in the code:
|
After a check from where AuthSetPassword is called, it should be safe to disable the unwanted behaivor because it is never used.
After a check from where AuthSetPassword is called, it should be safe to disable the unwanted behaivor because it is never used. This closes #122.
Git(Hub) does not worked the way as expected... :)
It might look strange but the sign up code doesn't use transaction (yet). So if there is a failure in between INSERTs, you'd have a half setup user. That's why there was an "UPSERT" in the code, making the function repeatable after failure ("idempotent"). Reason why they are so few transactions in the code: they can be slow, if you use a lot of them or if they are long. Also they don't exactly improve readability... |
The tests didn't pass with these changes. See #122.
File: auth.go Function: AuthSetPassword()
The function is able to create a new User if the passed userId does not exists. This seems to be very bad behavior for the Name AuthSetPassword.
The text was updated successfully, but these errors were encountered: