Always return most recently used auth_module from GetAuthInfo

This commit is contained in:
Sean Lafferty
2019-03-13 11:29:13 -04:00
parent d922285ab8
commit f17307bb97
2 changed files with 33 additions and 1 deletions

View File

@ -119,7 +119,7 @@ func GetAuthInfo(query *m.GetAuthInfoQuery) error {
AuthModule: query.AuthModule,
AuthId: query.AuthId,
}
has, err := x.Get(userAuth)
has, err := x.Desc("created").Get(userAuth)
if err != nil {
return err
}