* Shows the sign up view if the new users registration is enabled by the server settings.
*
* REMARK: We must set up the sign up view listener [setupSignUpView].
*/
funshowSignUpView()
/**
* Setups the sign up view when tapped.
*/
funsetupSignUpView()
/**
/**
* Shows the forgot password view if enabled by the server settings.
* Shows the forgot password view if enabled by the server settings.
*
* REMARK: We must set up the forgot password view listener [setupForgotPasswordView].
*/
*/
funshowForgotPasswordView()
funshowForgotPasswordView()
/**
/**
* Setups the forgot password view when tapped.
* Saves Google Smart Lock credentials.
*/
funsetupForgotPasswordView()
/**
* Hides the sign up view.
*/
funhideSignUpView()
/**
* Enables and shows the oauth view if there is login via social accounts enabled by the server settings.
*
* REMARK: We must show at maximum *three* social accounts views ([enableLoginByFacebook], [enableLoginByGithub], [enableLoginByGoogle],
* [enableLoginByLinkedin], [enableLoginByMeteor], [enableLoginByTwitter], [enableLoginByGitlab], [addCustomOauthServiceButton] or [addSamlServiceButton]) for the oauth view.
* If the possibility of login via social accounts exceeds 3 different ways we should set up the FAB ([setupFabListener]) to show the remaining view(s).
*/
funenableOauthView()
/**
* Disables and hides the Oauth view if there is not login via social accounts enabled by the server settings.
*/
fundisableOauthView()
/**
* Shows the login button.
*/
funshowLoginButton()
/**
* Hides the login button.
*/
funhideLoginButton()
/**
* Shows the "login by Facebook view if it is enable by the server settings.
*/
funenableLoginByFacebook()
/**
* Shows the "login by Github" view if it is enable by the server settings.
*
* REMARK: We must set up the Github button listener before enabling it [setupGithubButtonListener].
*/
funenableLoginByGithub()
/**
* Setups the Github button when tapped.
*
* @param githubUrl The Github OAuth URL to authenticate with.
* @param state A random string generated by the app, which you'll verify later (to protect against forgery attacks).
// TODO: If the usernameOrEmail and password was informed by the user on the previous screen, then we should pass only the pin, like this: fun authenticate(pin: EditText)
funauthenticate(
funauthenticate(
usernameOrEmail:String,
usernameOrEmail:String,
password:String,
password:String,
twoFactorAuthenticationCode:String
twoFactorAuthenticationCode:String
){
){
valserver=serverInteractor.get()
launchUI(strategy){
when{
valclient=factory.create(currentServer)
server==null->{
view.showLoading()
navigator.toServerScreen()
try{
}
// The token is saved via the client TokenProvider
twoFactorAuthenticationCode.isBlank()->{
valtoken=retryIO("login"){
view.alertBlankTwoFactorAuthenticationCode()
if(usernameOrEmail.isEmail()){
}
client.loginWithEmail(
else->{
usernameOrEmail,
launchUI(strategy){
password,
valclient=factory.create(server)
twoFactorAuthenticationCode
view.showLoading()
try{
// The token is saved via the client TokenProvider
<stringname="msg_ver_not_minimum">Die Server Version scheint älter als die minimale Version %1$s zu sein.\nBitte updaten Sie Ihren Server um sich einloggen zu können!</string>
<stringname="msg_ver_not_minimum">Die Server Version scheint älter als die minimale Version %1$s zu sein.\nBitte updaten Sie Ihren Server um sich einloggen zu können!</string>
<stringname="msg_content_description_show_more_login_options">Show more login options</string><!-- TODO Translate-->
<stringname="msg_content_description_show_attachment_options">Afficher les options de fichiers</string>
<stringname="msg_content_description_show_attachment_options">Afficher les options de fichiers</string>
<stringname="msg_you">Vous</string>
<stringname="msg_you">Vous</string>
<stringname="msg_unknown">Inconnu</string>
<stringname="msg_unknown">Inconnu</string>
...
@@ -107,9 +113,7 @@
...
@@ -107,9 +113,7 @@
<stringname="msg_ver_not_minimum">
<stringname="msg_ver_not_minimum">
On dirait que la version de votre serveur est inférieure à la version minimale requise %1$s.\nVeuillez mettre à jour votre serveur pour vous connecter!
On dirait que la version de votre serveur est inférieure à la version minimale requise %1$s.\nVeuillez mettre à jour votre serveur pour vous connecter!
</string>
</string>
<stringname="msg_proceed">PROCÉDER</string>
<stringname="msg_cancel">ANNULER</string>
<stringname="msg_cancel">ANNULER</string>
<stringname="msg_warning">ATTENTION</string>
<stringname="msg_http_insecure">Lorsque vous utilisez HTTP, vous vous connectez à un serveur non sécurisé. Nous ne vous recommandons pas de le faire.</string>
<stringname="msg_http_insecure">Lorsque vous utilisez HTTP, vous vous connectez à un serveur non sécurisé. Nous ne vous recommandons pas de le faire.</string>
<stringname="msg_error_checking_server_version">Une erreur est survenue lors de la vérification de la version de votre serveur, veuillez réessayer</string>
<stringname="msg_error_checking_server_version">Une erreur est survenue lors de la vérification de la version de votre serveur, veuillez réessayer</string>
<stringname="msg_invalid_server_protocol">Le protocole sélectionné n\'est pas accepté par ce serveur, essayez d\'utiliser HTTPS</string>
<stringname="msg_invalid_server_protocol">Le protocole sélectionné n\'est pas accepté par ce serveur, essayez d\'utiliser HTTPS</string>
<stringname="msg_update_app_version_in_order_to_continue">Версія сервера застаріла. Будь ласка, зв\'яжіться з адміністратором, щоб оновити сервер.</string>
<stringname="msg_update_app_version_in_order_to_continue">Версія сервера застаріла. Будь ласка, зв\'яжіться з адміністратором, щоб оновити сервер.</string>
<stringname="msg_ver_not_recommended">Здається, версія сервера менше ніж рекомендована %1$s. \nМожна увійти, але можуть виникнути ті чи інші проблеми під час роботи.</string>
<stringname="msg_ver_not_recommended">Здається, версія сервера менше ніж рекомендована %1$s. \nМожна увійти, але можуть виникнути ті чи інші проблеми під час роботи.</string>
<stringname="msg_ver_not_minimum">Здається, версія сервера менше ніж мінімально необхідна %1$s.\nДля роботи потрібно оновити сервер!</string>
<stringname="msg_ver_not_minimum">Здається, версія сервера менше ніж мінімально необхідна %1$s.\nДля роботи потрібно оновити сервер!</string>
<stringname="msg_proceed">ПРОДОВЖИТИ</string>
<stringname="msg_cancel">ВІДМІНА</string>
<stringname="msg_cancel">ВІДМІНА</string>
<stringname="msg_warning">ПОПЕРЕДЖЕННЯ</string>
<stringname="msg_http_insecure">При використанні HTTP ви підключаєтеся до потенційно небезпечного сервера. Ми не радимо вам це робити.</string>
<stringname="msg_http_insecure">При використанні HTTP ви підключаєтеся до потенційно небезпечного сервера. Ми не радимо вам це робити.</string>
<stringname="msg_error_checking_server_version">Під час перевірки версії вашого сервера сталася помилка, спробуйте ще раз.</string>
<stringname="msg_error_checking_server_version">Під час перевірки версії вашого сервера сталася помилка, спробуйте ще раз.</string>
<stringname="msg_invalid_server_protocol">Використання обраного протоколу не дозволено на цьому сервері, спробуйте використати HTTPS</string>
<stringname="msg_invalid_server_protocol">Використання обраного протоколу не дозволено на цьому сервері, спробуйте використати HTTPS</string>