forked from github/szkolny
[Login] Reformat LoginInfo.
This commit is contained in:
parent
2b3a7f6b41
commit
481af64137
@ -26,6 +26,7 @@ object LoginInfo {
|
|||||||
validationRegex = "([\\w.\\-_+]+)?\\w+@[\\w-_]+(\\.\\w+)+",
|
validationRegex = "([\\w.\\-_+]+)?\\w+@[\\w-_]+(\\.\\w+)+",
|
||||||
caseMode = FormField.CaseMode.LOWER_CASE
|
caseMode = FormField.CaseMode.LOWER_CASE
|
||||||
)
|
)
|
||||||
|
|
||||||
private fun getPasswordCredential(keyName: String) = FormField(
|
private fun getPasswordCredential(keyName: String) = FormField(
|
||||||
keyName = keyName,
|
keyName = keyName,
|
||||||
name = R.string.login_hint_password,
|
name = R.string.login_hint_password,
|
||||||
@ -38,7 +39,8 @@ object LoginInfo {
|
|||||||
hideText = true
|
hideText = true
|
||||||
)
|
)
|
||||||
|
|
||||||
val list by lazy { listOf(
|
val list by lazy {
|
||||||
|
listOf(
|
||||||
Register(
|
Register(
|
||||||
loginType = LOGIN_TYPE_LIBRUS,
|
loginType = LOGIN_TYPE_LIBRUS,
|
||||||
internalName = "librus",
|
internalName = "librus",
|
||||||
@ -370,7 +372,8 @@ object LoginInfo {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
) }
|
)
|
||||||
|
}
|
||||||
|
|
||||||
data class Register(
|
data class Register(
|
||||||
val loginType: Int,
|
val loginType: Int,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user