Skip to content

Conversation

lightalloy
Copy link
Contributor

What type of PR is this? (check all applicable)

  • Optimization

Description

  • Set user remember fields w/o immediate write to the database
  • Basic specs for the AuthorizationService

Related Tickets & Documents

#2061

@pr-triage pr-triage bot added the PR: unreviewed bot applied label for PR's with no review label Apr 8, 2019
user.name = auth.info.nickname if user.name.blank?
user.skip_confirmation!
user.remember_me!
user.remember_me = true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting remember_me doesn't change anything, because User#remember_me always returns true
https://github.com/thepracticaldev/dev.to/blob/dbac5f6d190913a3dab669d94d6ba73dd8e09a94/app/models/user.rb#L273-L275

@benhalpern benhalpern merged commit 4ef7635 into forem:master Apr 8, 2019
@pr-triage pr-triage bot added PR: merged bot applied label for PR's that are merged and removed PR: unreviewed bot applied label for PR's with no review labels Apr 8, 2019
@lightalloy lightalloy deleted the optimize-sign-in branch April 8, 2019 14:20
@pr-triage pr-triage bot added PR: reviewed-approved bot applied label for PR's where reviewer approves changes and removed PR: merged bot applied label for PR's that are merged labels Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: reviewed-approved bot applied label for PR's where reviewer approves changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants