qor / auth

Golang Authentication solution
MIT License
729 stars 99 forks source link

Registration email not working #11

Open aniruddha-mmt-zz opened 6 years ago

aniruddha-mmt-zz commented 6 years ago

After setting smtp details while sending emails there is error :

failed to find template: auth/confirmation.text

We are using clean theme for auth .

failed to find template: auth/confirmation.text TO: test1@test.com Subject: Please confirm your account

Content-Type: text/html; charset=UTF-8

Please click on the below link to validate your email address:

http://localhost:7000/auth/password/confirm?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwcm92aWRlciI6InBhc3N3b3JkIiwidXNlcmlkIjoiMzE0IiwianRpIjoidGVzdDFAdGVzdC5jb20iLCJzdWIiOiJjb25maXJtIn0.UDQennBXY_0k9qaL-YhagVleeh-yoK_1NBXxn7gA6L4

sergolius commented 4 years ago
  1. Please see https://github.com/qor/auth/issues/12#issuecomment-524820403
  2. It expects to exists auth/confirmation.text.tmpl not auth/confirmation.txt.tmpl *.text.tmpl will be rendered as plain text
ghost commented 4 years ago

I created a fork of qor where I committed several fixes/pull requests to make it work. Available at, https://github.com/qorpress/qorpress-auth-example