[O] Allow change maimai name to chinese characters in settings

pull/81/head
Clansty 2024-11-04 19:09:48 +08:00
parent b28a1986c9
commit 996632ac73
No known key found for this signature in database
GPG Key ID: 3A6BE8BAF2EDE134
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ class Maimai2(
val newNameFull = toFullWidth(newName)
us.cardByName(u.username) { card ->
val user = userDataRepo.findByCard(card) ?: (404 - "User not found")
settableFields["userName"]?.invoke(user, newNameFull)
user.userName = newNameFull
userDataRepo.save(user)
}
mapOf("newName" to newNameFull)