Skip to content

Conversation

@VictorCai-bit
Copy link

When the provider is password,we will create the auth_identitys table using:
gormDB.AutoMigrate(&auth_identity.AuthIdentity{})
If the variable authInfo declared as auth_identity.Basic,will cause
if !tx.Model(context.Auth.AuthIdentityModel).Where(authInfo).Scan(&authInfo).RecordNotFound() { return nil, auth.ErrInvalidAccount }
error.
So,the variable authInfo must declare as auth_identity.AuthIdentity.

@VictorCai-bit
Copy link
Author

There are also the same problems when register.

@swrdfish
Copy link

swrdfish commented Jan 7, 2019

save problem is in password reset:
providers/password/reset_password.go

Please change all the occurrences inside password package.

@sachinpuranik
Copy link

This is quite valid fix and this is what i changed in my change set.
My Changeset #39 can be discarded in case this is merged. This fixes the issue in other cases as well.

@VictorCai-bit VictorCai-bit closed this by deleting the head repository Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants