Undefined config & models when Initializing Auth
puneetv05 opened this issue · 2 comments
puneetv05 commented
When using the example code from Readme
Auth = clean.New(&auth.Config{
DB: gormDB,
Render: config.View,
Mailer: config.Mailer,
UserModel: models.User{},
})
Where to get config & models from ?
puneetv05 commented
likewise, we can implement the model for user but I didn't find the options to use with config!!
sergolius commented
You can find example of how to use QOR at: https://github.com/qor/qor-example
Example of User
's model:
https://github.com/qor/qor-example/blob/debf77110d7a9eeea6835234a100e73fc699503a/models/users/user.go#L11