From b07902b807eb12a3a364506bcd618ab7c7463dcf Mon Sep 17 00:00:00 2001 From: Gradido2 Date: Tue, 14 Jul 2020 11:51:05 +0000 Subject: [PATCH] more CSS --- src/cpsp/checkEmail.cpsp | 46 +++++++-------------------- src/cpsp/flags.cpsp | 30 +++++++----------- src/cpsp/resetPassword.cpsp | 63 +++++++++++++++++-------------------- 3 files changed, 52 insertions(+), 87 deletions(-) diff --git a/src/cpsp/checkEmail.cpsp b/src/cpsp/checkEmail.cpsp index 7a7922e60..7e855b84c 100644 --- a/src/cpsp/checkEmail.cpsp +++ b/src/cpsp/checkEmail.cpsp @@ -8,7 +8,7 @@ #include "../SingletonManager/SessionManager.h" #include "../SingletonManager/LanguageManager.h" #include "../SingletonManager/EmailManager.h" -enum PageState +enum PageState { MAIL_NOT_SEND, ASK_VERIFICATION_CODE, @@ -20,20 +20,20 @@ enum PageState const char* pageName = "Email Verification"; auto lm = LanguageManager::getInstance(); auto em = EmailManager::getInstance(); - + auto lang = chooseLanguage(request); auto langCatalog = lm->getFreeCatalog(lang); unsigned long long verificationCode = 0; - + PageState state = ASK_VERIFICATION_CODE; - - if(mSession && model::table::EMAIL_OPT_IN_REGISTER_DIRECT == mSession->getEmailVerificationType()) + + if(mSession && model::table::EMAIL_OPT_IN_REGISTER_DIRECT == mSession->getEmailVerificationType()) { state = EMAIL_ACTIVATED; - } + } else { - + if(!form.empty()) { auto langBtn = form.get("lang-btn", ""); auto verficationCodeStr = form.get("email-verification-code", "0"); @@ -48,11 +48,11 @@ enum PageState langCatalog = lm->getFreeCatalog(lang); } } - + // remove old cookies if exist auto sm = SessionManager::getInstance(); sm->deleteLoginCookies(request, response, mSession); - + if(mSession) { getErrors(mSession); if(mSession->getSessionState() < SESSION_STATE_EMAIL_VERIFICATION_SEND) { @@ -65,30 +65,12 @@ enum PageState } } %><%@ include file="header.cpsp" %> -
- -
-
-
-
- <%= getErrorsHtml() %> -
- @@ -96,7 +78,7 @@ enum PageState
- @@ -116,7 +98,7 @@ enum PageState

@@ -129,8 +111,4 @@ enum PageState

- -
<%@ include file="footer.cpsp" %> diff --git a/src/cpsp/flags.cpsp b/src/cpsp/flags.cpsp index 2a2f6a555..a98f823dd 100644 --- a/src/cpsp/flags.cpsp +++ b/src/cpsp/flags.cpsp @@ -1,20 +1,12 @@ +
-
-
-
- -
-
-
-
- -
-
-
-
\ No newline at end of file + + + +
\ No newline at end of file diff --git a/src/cpsp/resetPassword.cpsp b/src/cpsp/resetPassword.cpsp index ebd6abd21..104d286fd 100644 --- a/src/cpsp/resetPassword.cpsp +++ b/src/cpsp/resetPassword.cpsp @@ -16,10 +16,8 @@ enum PageState { PAGE_WAIT_EMAIL, PAGE_WAIT_ADMIN, PAGE_EMAIL_ALREADY_SEND - }; %><%% - PageState state = PAGE_EMAIL_ASK; auto lm = LanguageManager::getInstance(); auto sm = SessionManager::getInstance(); @@ -102,46 +100,46 @@ enum PageState { %><%@ include file="header.cpsp" %> - <% if(state == PAGE_EMAIL_ASK) { %>

Passwort zurücksetzen

-
+ <% if(state == PAGE_EMAIL_ASK) { %> +
- - + +
- + +
+
+
+ <% } else if(state == PAGE_ASK) { %> +
+ <%@ include file="flags.cpsp" %> +
+ + + + +
+
+ +
+
+ +
+
+
- <% } else if(state == PAGE_ASK) { %> - <%@ include file="flags.cpsp" %> -
-
-
- - - - -
-
- -
-
- -
-
-
-
-
<% } else if(state == PAGE_WAIT_EMAIL) { %> <%= langCatalog->gettext("Dir wird eine E-Mail zugeschickt um dein Passwort zurückzusetzen.") %> <% } else if(state == PAGE_WAIT_ADMIN) { %> @@ -155,9 +153,6 @@ enum PageState {
-