Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialWilliam Romero
4,807 PointsWhat is the method that we would call on the user object to check the submitted password?
i cant get this right sorry
2 Answers
Jennifer Nordell
Treehouse TeacherThe answer you're looking for is "authenticate". That's the method used to check the user's password. I have the sneaking suspicion that you tried to type the whole code in there instead of just the name of the method. There's an example of this method being used at around 49 seconds into this video https://teamtreehouse.com/library/user-authentication-with-rails/password-hashing-and-sign-in/testing-session-creation. Hope this helps!
Damian Kosowski
19,746 PointsIt's "authenticate". It is probably best to revisit the video because it is quite a important issue. You can read also a little bit about it here: http://api.rubyonrails.org/classes/ActiveModel/SecurePassword/ClassMethods.html#method-i-has_secure_password
William Romero
4,807 PointsWilliam Romero
4,807 PointsThank alot this realy help, i was writing the method with the parameters.