auth icon indicating copy to clipboard operation
auth copied to clipboard

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

Open supercaimin opened this issue 7 years ago • 3 comments

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 avatar Nov 27 '18 02:11 supercaimin

There are also the same problems when register.

supercaimin avatar Nov 27 '18 03:11 supercaimin

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

Please change all the occurrences inside password package.

swrdfish avatar Jan 07 '19 21:01 swrdfish

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.

sachinpuranik avatar Mar 08 '20 07:03 sachinpuranik