We have implemented and used SecuredSocial for some time now. We have additional data on users that we maintain in our DB.
We wrote a custom user service that works well, but we want to add the functionality for controlling users login (e.g. suspending a user for a period of time).
I was wondering what is the right way for the user service to do that? I can see the messages files have different messages like:
securesocial.login.accessDenied=You denied access to your account. Please grant it to log in.
But not sure how the user service can direct the reply to accessDenied. Simply returning null (yes, Java App) from my implantation of
@Override
public Promise<ShadowUser> doSave(BasicProfile profile, SaveMode saveMode)
results in showing the message:
securesocial.login.invalidCredentials=The credentials you entered are not valid