gustavoponce7/spring-login

not able to login

snkmrjha opened this issue · 5 comments

not able to login

There was no login post method in the login controller. Let me have a look and fix it.

I can not login too ... it says like this:
image
but i'm sure i write the correct email and password .

O, i have solved my problem , i should not create database by myself,the application.properties file
has one line : spring.datasource.initialization-mode=always
it generate database contents automatically , all i need is give springboot an empty database name;

The actual fix is to change the role query in application.properties which is wrong.

spring.queries.roles-query=select u.email, r.role from users u inner join user_role ur on(u.user_id=ur.user_id) inner join roles r on(ur.role_id=r.role_id) where u.email=?

Please fetch the latest changes, the issue has been resolved