-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable and setup email confirmation for db auth method
- Loading branch information
1 parent
566fe9e
commit 394378d
Showing
7 changed files
with
59 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class RegistrationsController < Devise::RegistrationsController | ||
def after_inactive_sign_up_path_for(resource_or_scope) | ||
new_user_session_path | ||
end | ||
|
||
def after_sign_out_path_for(resource_or_scope) | ||
new_user_session_path | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<div class="session-logo"> | ||
<%= image_tag("logo.png") %> | ||
</div> | ||
|
||
<h4 class="is-size-4 mb-2">Resend confirmation instructions</h4> | ||
|
||
<%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %> | ||
<%= render "devise/shared/error_messages", resource: resource %> | ||
|
||
<div class="field"> | ||
<%= f.label :email, class: 'label' %> | ||
<div class="control"> | ||
<%= f.email_field :email, autofocus: true, autocomplete: "email", class: 'input', value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %> | ||
</div> | ||
</div> | ||
|
||
<div class="actions"> | ||
<button class="button is-rounded" type="submit">Resend confirmation instructions</button> | ||
</div> | ||
<% end %> | ||
|
||
<%= render "devise/shared/links" %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters