-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from CH1006/222
222: reset-password
- Loading branch information
Showing
15 changed files
with
122 additions
and
10 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 |
---|---|---|
|
@@ -6,3 +6,7 @@ | |
.custom-btn-login{ | ||
margin-top: 10px; | ||
} | ||
|
||
#error_explanation { | ||
color: red; | ||
} |
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,7 @@ | ||
# frozen_string_literal: true | ||
|
||
module Manager | ||
class PasswordsController < Devise::PasswordsController | ||
layout "sessions" | ||
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,30 @@ | ||
.row.justify-content-center | ||
.col-xl-10.col-lg-12.col-md-9 | ||
.card.o-hidden.border-0.shadow-lg.my-5 | ||
.card-body.p-0 | ||
.row | ||
.col-lg-6.d-none.d-lg-block.bg-register-image | ||
.col-lg-6 | ||
.p-5 | ||
.text-center | ||
h1.h4.text-gray-900.mb-2 | ||
| Change your password | ||
p.mb-4 | ||
| Now, You can enter a new password for your account! | ||
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| | ||
= render "shared/manager/error_messages", object: resource | ||
= f.hidden_field :reset_password_token | ||
.form-group | ||
= f.label :password, "New password" | ||
- if @minimum_password_length | ||
em | ||
| (#{@minimum_password_length} characters minimum) | ||
br/ | ||
= f.password_field :password, autofocus: true, autocomplete: "new-password", class: "form-control" | ||
.form-group | ||
= f.label :password_confirmation, "Confirm new password" | ||
= f.password_field :password_confirmation, autocomplete: "off", class: "form-control" | ||
.actions | ||
= f.submit "Change my password", class: "btn btn-primary btn-block" | ||
.text-center | ||
= link_to "Already have an account? Login!", new_admin_session_path |
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 @@ | ||
.row.justify-content-center | ||
.col-xl-10.col-lg-12.col-md-9 | ||
.card.o-hidden.border-0.shadow-lg.my-5 | ||
.card-body.p-0 | ||
.row | ||
.col-lg-6.d-none.d-lg-block.bg-password-image | ||
.col-lg-6 | ||
.p-5 | ||
.text-center | ||
h1.h4.text-gray-900.mb-2 | ||
| Forgot Your Password? | ||
p.mb-4 | ||
| We get it, stuff happens. Just enter your email address below and we'll send you a link to reset your password! | ||
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }, class: "user") do |f| | ||
= render "shared/manager/error_messages", object: resource | ||
.form-group | ||
= f.label :email | ||
= f.email_field :email, autofocus: true, autocomplete: "email", class: "form-control" | ||
.actions | ||
= f.submit "Reset Password", class: "btn btn-primary btn-block" | ||
.text-center | ||
= link_to "Already have an account? Login!", new_admin_session_path |
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,18 @@ | ||
# Add configuration values here, as shown below. | ||
# | ||
# pusher_app_id: "2954" | ||
# pusher_key: 7381a978f7dd7f9a1117 | ||
# pusher_secret: abdc3b896a0ffb85d373 | ||
# stripe_api_key: sk_test_2J0l093xOyW72XUYJHE4Dv2r | ||
# stripe_publishable_key: pk_test_ro9jV5SNwGb1yYlQfzG17LHK | ||
# | ||
# production: | ||
# stripe_api_key: sk_live_EeHnL644i6zo4Iyq4v1KdV9H | ||
# stripe_publishable_key: pk_live_9lcthxpSIHbGwmdO941O1XVU | ||
GMAIL_USERNAME: example@gmail.com | ||
GMAIL_PASSWORD: password | ||
ADDRESS: smtp.gmail.com | ||
production: | ||
GMAIL_USERNAME: example@gmail.com | ||
GMAIL_PASSWORD: password | ||
DOMAIN: domain |
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