Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query fix #166

Merged
merged 3 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [5.0.1] - 2023-10-12

- Fixes user info from primary user id query
- Fixes `deviceIdHash` issue

## [5.0.0] - 2023-09-19

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ private static PasswordlessDeviceRowMapper getInstance() {

@Override
public PasswordlessDevice map(ResultSet result) throws Exception {
return new PasswordlessDevice(result.getString("device_id_hash"), result.getString("email"),
return new PasswordlessDevice(result.getString("device_id_hash").trim(), result.getString("email"),
result.getString("phone_number"), result.getString("link_code_salt"),
result.getInt("failed_attempts"));
}
Expand All @@ -1130,7 +1130,7 @@ private static PasswordlessCodeRowMapper getInstance() {

@Override
public PasswordlessCode map(ResultSet result) throws Exception {
return new PasswordlessCode(result.getString("code_id"), result.getString("device_id_hash"),
return new PasswordlessCode(result.getString("code_id"), result.getString("device_id_hash").trim(),
result.getString("link_code_hash"), result.getLong("created_at"));
}
}
Expand Down