Stripping colons from User display name - forbidden by RFC
This commit is contained in:
parent
0f0452a1c4
commit
029d87f3c2
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class OneTimePassword @Inject constructor(
|
||||||
*/
|
*/
|
||||||
fun name(): String {
|
fun name(): String {
|
||||||
val defaultUserName = resourceHelper.gs(R.string.smscommunicator_default_user_display_name)
|
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)
|
if (userName.length == 0)
|
||||||
userName = defaultUserName
|
userName = defaultUserName
|
||||||
return userName
|
return userName
|
||||||
|
|
Loading…
Add table
Reference in a new issue