Ignore extra spaces and special characters in Recovery Password entry

This commit is contained in:
Andrew
2024-06-27 21:45:13 +09:30
parent 750dfb455d
commit 1cd7a57515
3 changed files with 22 additions and 1 deletions

View File

@@ -46,7 +46,7 @@ internal class LinkDeviceViewModel @Inject constructor(
fun onContinue() {
viewModelScope.launch {
try {
codec.decodeAsByteArray(state.value.recoveryPhrase).let(::onSuccess)
codec.sanitizeAndDecodeAsByteArray(state.value.recoveryPhrase).let(::onSuccess)
} catch (e: Exception) {
onFailure(e)
}