#1650 Fix users with capitals not having their session saved

This commit is contained in:
ljacqu 2018-12-04 19:04:25 +01:00
parent 3cb40a2c93
commit f431325516
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ public final class AuthMeColumnsHandler {
*/
public <T> boolean update(String name, DataSourceColumn<T> column, T value) {
try {
return internalHandler.update(name, column, value);
return internalHandler.update(name.toLowerCase(), column, value);
} catch (SQLException e) {
logSqlException(e);
return false;

View File

@ -452,7 +452,7 @@ public abstract class AbstractDataSourceIntegrationTest {
DataSource dataSource = getDataSource();
// when
dataSource.grantSession("bobby");
dataSource.grantSession("Bobby");
dataSource.grantSession("doesNotExist");
// then