Update generate token api

1. Return social login provider name when user is a social login user

2. Update test.generateResetToken.js
Merge pull request #277 from Ghost141/generate_token_update

Update generate token api