-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto login after create registraion #325
Comments
In the import CampusLabWeb.Router.Helpers
def registration_create(conn, _), do
redirect(conn, to: session_path(conn, :create), method: :post)
end |
If i use this redirection, i have this error : I just want to simulate a connexion (with login and password) from the home page. |
In Coherence settings you need to set this: config :coherence,
user_schema: ProjectWeb.Accounts.User,
repo: ProjectWeb.Repo,
module: ProjectWeb,
web_module: ProjectWeb,
router: ProjectWeb.Router,
messages_backend: ProjectWeb.Coherence.Messages,
logged_out_url: "/",
email_from_name: "Campus Lab",
email_from_email: "[email protected]",
minimum_password_length: 6,
allow_unconfirmed_access_for: 1 |
Perfect Thank you ! |
I searched functions but i couldnt find. Is there a way to achieve that in functions?
The text was updated successfully, but these errors were encountered: