Stripping colons from User display name - forbidden by RFC
This commit is contained in:
parent
0f0452a1c4
commit
029d87f3c2
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue