-
Notifications
You must be signed in to change notification settings - Fork 0
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
Release - 0.2.0 #42
Release - 0.2.0 #42
Conversation
Rebase from setup deployment workflows
…rty/google-search-ruby into feature/user-login-backend Pull from GitHub
[#5][Backend] As a User, I can sign up and sign in/out with a username and password
protected | ||
|
||
def update_allowed_parameters | ||
devise_parameter_sanitizer.permit(:sign_up) do |u| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has the variable name 'u' |
devise_parameter_sanitizer.permit(:sign_up) do |u| | ||
u.permit(:first_name, :last_name, :email, :password, :password_confirmation) | ||
end | ||
devise_parameter_sanitizer.permit(:account_update) do |u| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has the variable name 'u' |
# the authenticate method from devise documentation | ||
def self.authenticate(email, password) | ||
user = User.find_for_authentication(email: email) | ||
user&.valid_password?(password) ? user : nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is controlled by argument 'password' |
login_as user, scope: :user | ||
end | ||
|
||
def sign_up_ui(email, password, password_confirm = nil) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has approx 8 statements |
BRAKEMAN REPORT
SUMMARY
SECURITY WARNINGS
Generated by 🚫 Danger |
fill_in 'user_last_name', with: user.last_name | ||
fill_in 'user_email', with: email | ||
fill_in 'user_password', with: password | ||
fill_in 'user_password_confirmation', with: password_confirm || password |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is controlled by argument 'password_confirm' |
@malparty I think we don't need In compass release we add |
Thanks! Time saver for future releases!! :) :) :) |
Content
User web authentication with Devise.
Preview available in Staging
Features
Chores
N/A
Bugs
N/A