mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2025-01-18 18:16:47 -06:00
Fix password reset related issues (#2308)
* Fix login hint in password reset field * Don't hide first password reset button * Change recover button label
This commit is contained in:
parent
4d3b16ec80
commit
1835446468
@ -238,8 +238,7 @@ class LoginFormFragment : BaseFragment<FragmentLoginFormBinding>(R.layout.fragme
|
||||
}
|
||||
|
||||
override fun showContact(show: Boolean) {
|
||||
binding.loginFormContact.visibility = if (show) VISIBLE else GONE
|
||||
binding.loginFormRecoverLink.visibility = if (show) GONE else VISIBLE
|
||||
binding.loginFormContact.isVisible = show
|
||||
}
|
||||
|
||||
override fun openPrivacyPolicyPage() {
|
||||
|
@ -46,7 +46,7 @@ class LoginRecoverPresenter @Inject constructor(
|
||||
|
||||
fun updateFields() {
|
||||
view?.run {
|
||||
setUsernameHint(if ("standard" in recoverHostValue) emailHintString else loginPeselEmailHintString)
|
||||
setUsernameHint(if ("email" in recoverHostValue) emailHintString else loginPeselEmailHintString)
|
||||
}
|
||||
}
|
||||
|
||||
@ -92,7 +92,7 @@ class LoginRecoverPresenter @Inject constructor(
|
||||
isCorrect = false
|
||||
}
|
||||
|
||||
if ("standard" in host && "@" !in username) {
|
||||
if ("email" in host && "@" !in username) {
|
||||
view?.setUsernameError(view?.invalidEmailString.orEmpty())
|
||||
isCorrect = false
|
||||
}
|
||||
|
@ -76,7 +76,7 @@
|
||||
<string name="login_email_subject" translatable="false">Zgłoszenie: Problemy z logowaniem</string>
|
||||
<string name="login_email_text" translatable="false">Informacje o aplikacji:\n\nUrządzenie: %1$s\nWersja SDK: %2$s\nWersja aplikacji: %3$s\nDodatkowe informacje: %4$s\nIdentyfikator instalacji: %5$s\nOstatni błąd: %6$s\n\nNazwa szkoły i miejscowość: </string>
|
||||
<string name="login_recover_warning">Make sure you select the correct UONET+ register variation!</string>
|
||||
<string name="login_recover_button">I forgot my password</string>
|
||||
<string name="login_recover_button">Reset password</string>
|
||||
<string name="login_recover_title">Recover your account</string>
|
||||
<string name="login_recover">Recover</string>
|
||||
<string name="login_signed_in">Student is already signed in</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user