Stripping colons from User display name - forbidden by RFC

This commit is contained in:
Dominik Dzienia 2020-02-11 12:55:00 +01:00
parent 0f0452a1c4
commit 029d87f3c2

View file

@ -48,7 +48,7 @@ class OneTimePassword @Inject constructor(
*/
fun name(): String {
val defaultUserName = resourceHelper.gs(R.string.smscommunicator_default_user_display_name)
var userName = sp.getString(R.string.key_smscommunicator_otp_name, defaultUserName).trim()
var userName = sp.getString(R.string.key_smscommunicator_otp_name, defaultUserName).replace(":", "").trim()
if (userName.length == 0)
userName = defaultUserName
return userName