qor / auth

Golang Authentication solution
MIT License
716 stars 100 forks source link

Undefined config & models when Initializing Auth #27

Open puneetv05 opened 5 years ago

puneetv05 commented 5 years ago

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 5 years ago

likewise, we can implement the model for user but I didn't find the options to use with config!!

sergolius commented 4 years ago

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