Skip to content
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

Fixed:Unknown column 'basics.provider' in 'where clause')? #20

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

supercaimin
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.

@supercaimin
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.

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.

None yet

3 participants