jaliss / securesocial

A module that provides OAuth, OAuth2 and OpenID authentication for Play Framework applications
http://www.securesocial.ws
Apache License 2.0
1.19k stars 510 forks source link

Null user passed to public F.Promise<PasswordInfo> doPasswordInfoFor(User user) #580

Open MojoJojo opened 8 years ago

MojoJojo commented 8 years ago

Hi,

I am implementing a user service for my application (play/java) and was able to implement the user service on my own. I am using version 3.0-M4. I noticed that on the route /auth/password, the below method is called, presumably to retrieve existing credentials?

public F.Promise<PasswordInfo> doPasswordInfoFor(User user)

However, the user that is being passed is always null. Not sure if this is a bug or something I'm missing? The samples say the functionality is missing - is it actually missing from the plugin or just from the samples? Any help would be greatly appreciated.

jaliss commented 8 years ago

Hi, did you work this out @MojoJojo. Let me know, if not I'll take a look.

MojoJojo commented 8 years ago

I was ..sort of. I put in a check for NullUser and it seems to be working. Not sure why the method will be called for a null user though?