not able to login
snkmrjha opened this issue · 5 comments
snkmrjha commented
not able to login
vin0010 commented
There was no login post method in the login controller. Let me have a look and fix it.
weitiancai commented
weitiancai commented
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;
vin0010 commented
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=?
gustavoponce7 commented
Please fetch the latest changes, the issue has been resolved