reset password
Author Message
303496263
Posts: 68
Posted 18:08 Oct 22, 2016 |

We are having issues with users authentication even though we followed all the steps in the lecture video.

The problem that we are having is the following. When we are trying to log in, we do successfully get all the user details from the database including their role, but we get to the "...login?error" page. While debugging the code, we noticed that the getAuthorities() function is never called. getAuthorities() is implemented in our User class since our User class implements the UserDetails interface.

Any help would be greatly appreciated.

Thank you.

303496263
Posts: 68
Posted 18:25 Oct 22, 2016 |

Update: we tried to use spring default login form, and now we can see that the error is the following "Bad credentials". However, we can see that the user info was indeed retrieved in the console.

303496263
Posts: 68
Posted 18:44 Oct 22, 2016 |

We were able to fix this.

Thanks.