Giter Club home page Giter Club logo

sorcery-example-app's People

Contributors

mlainez avatar noamb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

sorcery-example-app's Issues

Example how to change a password

To complete the aplication: an example how to change a logged user password, validating the current password:

Ex:
[...............] current password

[...............] new password
[...............] password confirmation

Only changing if the user knows the current password

uninitialized constant OAuth2::Error

it seems that sometimes this error pop up from twitter because oauth2 is not ready/loaded.

I tried to move
require 'oauth2'
to the Gemfile and it seems better

undefined method `auto_login' for nil:NilClass

Guess I must be missing something here. I have a simple integration spec from which I'm trying to login a user.

let(:user) { Factory(:user, :email => "[email protected]", :password => "secret", :password_confirmation => "secret" ) }

and then in:

background do            
  login_user(user)       
  ....
end

when the spec is run:

Failure/Error: login_user(user)
     NoMethodError:
       undefined method `auto_login' for nil:NilClass
     # ./spec/requests/deleting_entries_spec.rb:15:in `block (2 levels) in <top (required)>'

undefined method 'authenticates_with_sorcery!'

When creating a new user the password seems to just be stored as plaintext. I got the feeling that sorcery wasn't processing it for some reason. I checked over the example app and saw authenticates_with_sorcery! in the user class, but I just get an undefined method error when adding it to my class. I also have config.user_class = User in my initializer. Any ideas?

Password Reset Error

Hey NoamB,

I was playing around with the example app and noticed that the PasswordResetsController line 29 was not working correctly for me.

if @user.reset_password!(params[:user])

#changed to 

if @user.change_password!(params[:user][:password])

Thanks for all your work! Loving the gem.

Mike

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.