auth icon indicating copy to clipboard operation
auth copied to clipboard

Undefined config & models when Initializing Auth

Open puneetv05 opened this issue 6 years ago • 2 comments

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 avatar Jan 23 '19 07:01 puneetv05

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

puneetv05 avatar Jan 23 '19 07:01 puneetv05

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

sergolius avatar Dec 29 '19 16:12 sergolius