diff --git a/client/views/login/form.coffee b/client/views/login/form.coffee index 0a2972fd5dad3a4d868e625ef892dfe12a44e632..eafffecefc32af7f1f93e3b56e8e52c910982668 100644 --- a/client/views/login/form.coffee +++ b/client/views/login/form.coffee @@ -24,7 +24,7 @@ Template.loginForm.helpers return 'hidden' unless Template.instance().state.get() is 'login' showBackToLoginLink: -> - return 'hidden' unless Template.instance().state.get() in ['register', 'forgot-password', 'email-verification'] + return 'hidden' unless Template.instance().state.get() in ['register', 'forgot-password', 'email-verification', 'wait-activation'] btnLoginSave: -> switch Template.instance().state.get() @@ -37,6 +37,9 @@ Template.loginForm.helpers when 'forgot-password' return t('Reset_password') + waitActivation: -> + return Template.instance().state.get() is 'wait-activation' + Template.loginForm.events 'submit #login-card': (event, instance) -> event.preventDefault() @@ -75,6 +78,8 @@ Template.loginForm.events if error?.error is 'no-valid-email' toastr.success t('We_have_sent_registration_email') instance.state.set 'login' + else if error?.error is 'inactive-user' + instance.state.set 'wait-activation' # else # FlowRouter.go 'index' else diff --git a/client/views/login/form.html b/client/views/login/form.html index 8f5eeb6bec7d3503ef3995985e5a890e6733e9fc..aa836ccdba3755e6341cbdcceccd262c097da69b 100644 --- a/client/views/login/form.html +++ b/client/views/login/form.html @@ -1,37 +1,45 @@ <template name="loginForm"> <form id="login-card" method='/'> - {{ > loginServices }} - {{#if needsValidateEmail}} - <div class="alert alert-danger"> - {{_ "You_neeed_confirm_email"}} + {{#if waitActivation}} + <header> + <h2>{{{_ "Registration_Succeeded"}}}</h2> + <p>{{{_ "Wait_activation_warning"}}}</p> + <p>{{{_ "Please_wait_activation"}}}</p> + </header> + {{else}} + {{ > loginServices }} + {{#if needsValidateEmail}} + <div class="alert alert-danger"> + {{_ "You_need_confirm_email"}} + </div> + {{/if}} + <div class="fields"> + <div class='input-text active {{showName}}'> + <input type="text" name='name' placeholder='{{_ "Name"}}' dir="auto" /> + </div> + <div class='input-text active {{showEmailOrUsername}}'> + <input type="text" name='emailOrUsername' placeholder='{{_ "Email_or_username"}}' autocapitalize="off" autocorrect="off" /> + </div> + <div class='input-text active {{showEmail}}'> + <input type="email" name='email' placeholder='{{_ "Email"}}' /> + </div> + <div class='input-text active {{showPassword}}'> + <input type="password" name='pass' placeholder='{{_ "Password"}}' /> + </div> + <div class='input-text active {{showConfirmPassword}}'> + <input type="password" name='confirm-pass' placeholder='{{_ "Confirm_password"}}' /> + </div> </div> - {{/if}} - <div class="fields"> - <div class='input-text active {{showName}}'> - <input type="text" name='name' placeholder='{{_ "Name"}}' dir="auto" /> - </div> - <div class='input-text active {{showEmailOrUsername}}'> - <input type="text" name='emailOrUsername' placeholder='{{_ "Email_or_username"}}' autocapitalize="off" autocorrect="off" /> + <div class="submit"> + <button data-loading-text="{{_ "Please_wait"}}..." class='button primary login'><span>{{btnLoginSave}}</span></button> </div> - <div class='input-text active {{showEmail}}'> - <input type="email" name='email' placeholder='{{_ "Email"}}' /> + <div class="register {{showRegisterLink}}"> + <a href="">{{_ 'Register'}}</a> </div> - <div class='input-text active {{showPassword}}'> - <input type="password" name='pass' placeholder='{{_ "Password"}}' /> + <div class="forgot-password {{showForgotPasswordLink}}"> + <a href="">{{_ 'Forgot_password'}}</a> </div> - <div class='input-text active {{showConfirmPassword}}'> - <input type="password" name='confirm-pass' placeholder='{{_ "Confirm_password"}}' /> - </div> - </div> - <div class="submit"> - <button data-loading-text="{{_ "Please_wait"}}..." class='button primary login'><span>{{btnLoginSave}}</span></button> - </div> - <div class="register {{showRegisterLink}}"> - <a href="">{{_ 'Register'}}</a> - </div> - <div class="forgot-password {{showForgotPasswordLink}}"> - <a href="">{{_ 'Forgot_password'}}</a> - </div> + {{/if}} <div class="back-to-login {{showBackToLoginLink}}"> <a href="">{{_ 'Back_to_login'}}</a> </div> diff --git a/i18n/de.i18n.json b/i18n/de.i18n.json index e54feaf03578300d3da68542d0ddb12444b000e7..4425223ece14f4870966909c47cbcafda2b2c40b 100644 --- a/i18n/de.i18n.json +++ b/i18n/de.i18n.json @@ -213,7 +213,7 @@ "Welcome_to_the" : "Willkommen bei", "With_whom" : "Mit wem?", "you_are_in_preview_mode_of" : "Sie sind m Vorschau-Modus des Kanals #<strong>__room_name__</strong>", - "You_neeed_confirm_email" : "Sie müssen Ihre Email bestätigen!", + "You_need_confirm_email" : "Sie müssen Ihre Email bestätigen!", "Your_Open_Source_solution" : "Deine eigene Open Source Chat Lösung", "You_will_not_be_able_to_recover" : "Sie können es nicht wieder rückgängig machen!", "Yes_delete_it" : "Ja, lösche es!", diff --git a/i18n/el.i18n.json b/i18n/el.i18n.json index abff0d753918280b7d77049c8c444221666c19f2..c3927da5e39795863293ec398c3a43523d9ed32f 100644 --- a/i18n/el.i18n.json +++ b/i18n/el.i18n.json @@ -214,7 +214,7 @@ "Welcome_to_the" : "Καλως ήλθατε στο", "With_whom" : "Με ποιον", "you_are_in_preview_mode_of" : "Είστε σε κατάσταση Ï€Ïοεπισκόπησης του ÎºÎ±Î½Î±Î»Î¹Î¿Ï #<strong>__room_name__</strong>", - "You_neeed_confirm_email" : "Î Ïεπει να επιβεβαίώσετε το email σας για να συνδεθείτε!", + "You_need_confirm_email" : "Î Ïεπει να επιβεβαίώσετε το email σας για να συνδεθείτε!", "Your_Open_Source_solution" : "Η δικιά σου λÏση Î±Î½Î¿Î¹Ï‡Ï„Î¿Ï ÎºÏŽÎ´Î¹ÎºÎ±", "You_will_not_be_able_to_recover" : "Δεν θα μποÏείτε να το επαναφÎÏετε!", "Yes_delete_it" : "Îαι, διÎγÏαψΠτο!", diff --git a/i18n/en.i18n.json b/i18n/en.i18n.json index 183f8f26219b0bf3fd16faf305b43421fa154314..b50399f547448486eb65e765a630a8e431c4867a 100644 --- a/i18n/en.i18n.json +++ b/i18n/en.i18n.json @@ -1,6 +1,7 @@ { "Access_online_demo" : "Access the online demo", "Access_Online_Demo" : "Access the Online Demo", + "Accounts_ManuallyApproveNewUsers" : "Manually aprove new users", "Accounts_denyUnverifiedEmail" : "Deny unverified e-mail", "Accounts_EmailVerification" : "E-mail Verification", "Accounts_RegistrationRequired" : "Registration Required", @@ -158,6 +159,7 @@ "Password" : "Password", "Password_changed_successfully" : "Password changed successfully", "Please_wait" : "Please wait", + "Please_wait_activation" : "Please wait, this can take some time.", "Powered_by" : "Powered by", "Privacy" : "Privacy", "Private_Groups" : "Private Groups", @@ -177,6 +179,7 @@ "quote" : "quote", "Recents" : "Recents", "Register" : "Register a new account", + "Registration_Succeeded" : "Registration Succeeded", "Remember_me" : "Remember me", "Remove" : "Remove", "Remove_Admin" : "Remove Admin", @@ -225,6 +228,7 @@ "User_has_been_deactivated" : "User has been deactivated", "User_has_been_deleted" : "User has been deleted", "User_is_no_longer_an_admin" : "User is no longer an admin", + "User_is_not_activated" : "User is not activated", "User_is_now_an_admin" : "User is now an admin", "User_joined_channel" : "Has joined the channel.", "User_joined_channel_female" : "Has joined the channel.", @@ -243,6 +247,7 @@ "Username_title" : "Register username", "Username_unavaliable" : "<strong>%s</strong> is already in use :(", "View_All" : "View All", + "Wait_activation_warning" : "Before you can login, your account must be manually activated by an administrator.", "We_have_sent_password_email" : "We have sent you an e-mail with password reset instructions. If you do not receive an e-mail shortly, please come back and try again.", "We_have_sent_registration_email" : "We have sent you an e-mail to confirm your registration. If you do not receive an e-mail shortly, please come back and try again.", "Welcome" : "Welcome <em>%s</em>.", @@ -250,7 +255,7 @@ "With_whom" : "With whom", "Yes_delete_it" : "Yes, delete it!", "you_are_in_preview_mode_of" : "You are in preview mode of channel #<strong>__room_name__</strong>", - "You_neeed_confirm_email" : "You need to confirm your email to login!", + "You_need_confirm_email" : "You need to confirm your email to login!", "You_will_not_be_able_to_recover" : "You will not be able to recover!", "Your_entry_has_been_deleted" : "Your entry has been deleted.", "Your_Open_Source_solution" : "Your own Open Source chat solution" diff --git a/i18n/es.i18n.json b/i18n/es.i18n.json index 49ce1c738feb9ca08fd9443d0af40bf590705926..fe16f2cf9dc88e355b907b3dbc1703b9507330ed 100644 --- a/i18n/es.i18n.json +++ b/i18n/es.i18n.json @@ -135,6 +135,6 @@ "Welcome" : "Bienvenido <em>%s</em>.", "Welcome_to_the" : "Bienvenido a la", "With_whom" : "Con quien", - "You_neeed_confirm_email" : "¡Es necesario confirmar tu correo electrónico para poder identificarte!", + "You_need_confirm_email" : "¡Es necesario confirmar tu correo electrónico para poder identificarte!", "Your_Open_Source_solution" : "Tu propia solución de chat de código abierto" } \ No newline at end of file diff --git a/i18n/fi.i18n.json b/i18n/fi.i18n.json index 946f978c81be950daf1cf885967616b5ec925bb8..09201b9a155d4945f5949b1a246b8bc18b697cb5 100644 --- a/i18n/fi.i18n.json +++ b/i18n/fi.i18n.json @@ -207,7 +207,7 @@ "Welcome_to_the" : "Tervetuloa", "With_whom" : "kanssa", "you_are_in_preview_mode_of" : "Tämä on kanavan #<strong>__room_name__</strong> esikatselutila", - "You_neeed_confirm_email" : "Sinun tulee vahvistaa sähköpostiosoitteesi!", + "You_need_confirm_email" : "Sinun tulee vahvistaa sähköpostiosoitteesi!", "Your_Open_Source_solution" : "Your own Open Source chat solution", "You_will_not_be_able_to_recover" : "Palauttaminen ei ole mahdollista!", "Yes_delete_it" : "Kyllä, poista!", diff --git a/i18n/fr.i18n.json b/i18n/fr.i18n.json index 293f915fb2351ddef4e75ad7222e05c82d1ed5d6..3585d3e85e3f7c6ad0374055061c892f030599c7 100644 --- a/i18n/fr.i18n.json +++ b/i18n/fr.i18n.json @@ -168,7 +168,7 @@ "Welcome_to_the" : "Bienvenue sur", "With_whom" : "Avec qui", "you_are_in_preview_mode_of" : "Aperçu du salon #<strong>__room_name__</strong> ", - "You_neeed_confirm_email" : "Vous devez confirmer votre adresse email pour vous connecter !", + "You_need_confirm_email" : "Vous devez confirmer votre adresse email pour vous connecter !", "Your_Open_Source_solution" : "Votre propre solution de chat Open Source", "You_will_not_be_able_to_recover" : "Cette action n'est pas réversible !", "Yes_delete_it" : "Oui, je confirme la suppression !", diff --git a/i18n/he.i18n.json b/i18n/he.i18n.json index 1c8db528aab76cabebc174dbf4021bbce0f06cb4..172381775443d6052cd450646d2e0346b79b1554 100644 --- a/i18n/he.i18n.json +++ b/i18n/he.i18n.json @@ -145,6 +145,6 @@ "Welcome" : "ברוך ×”×‘× <em>%s</em>.", "Welcome_to_the" : "ברוך ×”×‘× ×œ-", "you_are_in_preview_mode_of" : "×”× ×š בתצוגה מוקדמת של ערוץ #<strong>__rom_name__</strong>", - "You_neeed_confirm_email" : "×”×™× ×š צריך ל×מת ×ת כתובת ×”×ימייל על ×ž× ×ª להתחבר!", + "You_need_confirm_email" : "×”×™× ×š צריך ל×מת ×ת כתובת ×”×ימייל על ×ž× ×ª להתחבר!", "Your_Open_Source_solution" : "פתרון הקוד הפתוח שלך לצ'×ט" } \ No newline at end of file diff --git a/i18n/hr.i18n.json b/i18n/hr.i18n.json index 5e80d84c5353ce02cc270116a300a794f6e3af1e..a6b503e8749422506c5e2454c1406c11b490c023 100644 --- a/i18n/hr.i18n.json +++ b/i18n/hr.i18n.json @@ -199,7 +199,7 @@ "Welcome_to_the" : "Dobro doÅ¡li »", "With_whom" : "Sa kim", "you_are_in_preview_mode_of" : "Ti si u preglednom naÄinu kanala # <strong>__room_name__</strong>", - "You_neeed_confirm_email" : "TrebaÅ¡ potvrditi svoj email kako bi se prijavio!", + "You_need_confirm_email" : "TrebaÅ¡ potvrditi svoj email kako bi se prijavio!", "Your_Open_Source_solution" : "VaÅ¡e vlastito Open Source chat rjeÅ¡enje", "You_will_not_be_able_to_recover" : "Ovo nećeÅ¡ moći promijeniti!", "Yes_delete_it" : "Da, obriÅ¡i!", diff --git a/i18n/hu.i18n.json b/i18n/hu.i18n.json index 1a9f1f4a1dfa9eefa93035ee0fc8efa9691b6ef4..eb1febf22ce853ccb55b907cac9720140b1e77b8 100644 --- a/i18n/hu.i18n.json +++ b/i18n/hu.i18n.json @@ -124,6 +124,6 @@ "We_have_sent_registration_email" : "Küldtünk egy email-t hogy megerÅ‘sÃthessük a regisztrációt. Ha nem kapnál hamarosan levelet akkor gyere vissza késÅ‘bb és próbáld újra.", "Welcome" : "Ãœdvözöllek <em>%s</em>", "Welcome_to_the" : "Ãœdvözöllek a", - "You_neeed_confirm_email" : "Kérlek hitelesÃtsd az email cÃmed a bejelntkezéshez", + "You_need_confirm_email" : "Kérlek hitelesÃtsd az email cÃmed a bejelntkezéshez", "Your_Open_Source_solution" : "A saját NyÃlt Forrású chat-ed" } \ No newline at end of file diff --git a/i18n/it.i18n.json b/i18n/it.i18n.json index e8f8805f2039835753f080a065bb10d4789b30ea..13a19ec071b30a11d2aa022698c840fef7b880e2 100644 --- a/i18n/it.i18n.json +++ b/i18n/it.i18n.json @@ -124,6 +124,6 @@ "We_have_sent_registration_email" : "Abbiamo inviato una email per confermare la registrazione. Se non ricevi una email a breve tempo, torna e prova di nuovo.", "Welcome" : "Benvenuto <em>%s</em>.", "Welcome_to_the" : "Benvenuto a", - "You_neeed_confirm_email" : "Hai bisogno di confermare il tuo email per accedere!", + "You_need_confirm_email" : "Hai bisogno di confermare il tuo email per accedere!", "Your_Open_Source_solution" : "La tua soluzione per chat Open Source" } \ No newline at end of file diff --git a/i18n/ja.i18n.json b/i18n/ja.i18n.json index cdf0e0febd644eb549740b954985733b06144413..7a1c2d3a817ea0ece9cc73f41f8fab69c4eb5844 100644 --- a/i18n/ja.i18n.json +++ b/i18n/ja.i18n.json @@ -131,6 +131,6 @@ "We_have_sent_registration_email" : "登録を確èªã™ã‚‹ãƒ¡ãƒ¼ãƒ«ã‚’é€ä¿¡ã—ã¾ã—ãŸã€‚ã™ãã«ãƒ¡ãƒ¼ãƒ«ãŒå±Šã‹ãªã„å ´åˆã¯ã€å†åº¦ãŠè©¦ã—ãã ã•ã„。", "Welcome" : "よã†ã“ã <em>%s</em>.", "Welcome_to_the" : "Welcome to the", - "You_neeed_confirm_email" : "ãƒã‚°ã‚¤ãƒ³ã™ã‚‹ãŸã‚ã«ã¯ãƒ¡ãƒ¼ãƒ«ã‚’確èªã™ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ï¼", + "You_need_confirm_email" : "ãƒã‚°ã‚¤ãƒ³ã™ã‚‹ãŸã‚ã«ã¯ãƒ¡ãƒ¼ãƒ«ã‚’確èªã™ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ï¼", "Your_Open_Source_solution" : "独自ã®ã‚ªãƒ¼ãƒ—ンソースãƒãƒ£ãƒƒãƒˆã‚½ãƒªãƒ¥ãƒ¼ã‚·ãƒ§ãƒ³" } \ No newline at end of file diff --git a/i18n/km.i18n.json b/i18n/km.i18n.json index a0eabb2e0bba9aa72f458b968d2f5a3ea52b3229..ef21958dbe06dd33c8486b1b13611eaa9bafc818 100644 --- a/i18n/km.i18n.json +++ b/i18n/km.i18n.json @@ -170,7 +170,7 @@ "Welcome_to_the" : "ស្វាគមនáŸâ€‹áž˜áž€â€‹áž€áž¶áž“់", "With_whom" : "ជា​មួយ​នរណា", "you_are_in_preview_mode_of" : "អ្នក​ស្ážáž·ážâ€‹áž€áŸ’នុង​ទម្រង់​មើល​ជា​មុន​នៃ​ប៉ុស្ážáž·áŸ #<strong>__room_name__</strong>", - "You_neeed_confirm_email" : "អ្នក​ážáŸ’រូវ​បញ្ជាក់អ៊ីមែល​ដើម្បី​ឡុកចូល!", + "You_need_confirm_email" : "អ្នក​ážáŸ’រូវ​បញ្ជាក់អ៊ីមែល​ដើម្បី​ឡុកចូល!", "Your_Open_Source_solution" : "ដំណោះ​ស្រាយ​ពិភាក្សាកូដ​ចំហរ​របស់​អ្នក", "You_will_not_be_able_to_recover" : "អ្នក​នឹង​មិនអាច​ទាញ​មក​វិញ!", "Yes_delete_it" : "បាទ លប់​វា!", diff --git a/i18n/ko.i18n.json b/i18n/ko.i18n.json index 7ac58828b47aad08b2ac93033115cb1590da8e7d..e6b24d3fb912dd31dafeb6eaab8a351f8bcaa8bf 100644 --- a/i18n/ko.i18n.json +++ b/i18n/ko.i18n.json @@ -165,7 +165,7 @@ "Welcome_to_the" : "ì˜¤ì‹ ê²ƒì„ í™˜ì˜í•©ë‹ˆë‹¤", "With_whom" : "누구랑?", "you_are_in_preview_mode_of" : "#<strong>__room_name__</strong> ì±„ë„ ë¯¸ë¦¬ë³´ê¸° 모드", - "You_neeed_confirm_email" : "로그ì¸í•˜ë ¤ë©´ ì´ë©”ì¼ í™•ì¸ì´ 필요합니다!", + "You_need_confirm_email" : "로그ì¸í•˜ë ¤ë©´ ì´ë©”ì¼ í™•ì¸ì´ 필요합니다!", "Your_Open_Source_solution" : "ìžì‹ ë§Œì˜ ì˜¤í”ˆì†ŒìŠ¤ 채팅 솔루션", "You_will_not_be_able_to_recover" : "복구 안ë©ë‹ˆë‹¤!", "Yes_delete_it" : "넵, ì‚ì œ!", diff --git a/i18n/pl.i18n.json b/i18n/pl.i18n.json index 9249cb65234520608b7ab29390d11403468a29fc..1ce4e7ecec2ce4b59b65967a4491b8b34b0ad008 100644 --- a/i18n/pl.i18n.json +++ b/i18n/pl.i18n.json @@ -190,7 +190,7 @@ "Welcome_to_the" : "Witaj w", "With_whom" : "Z kim", "you_are_in_preview_mode_of" : "JesteÅ› w trybie podglÄ…du kanaÅ‚u # <strong>__room_name__</strong>", - "You_neeed_confirm_email" : "Musisz potwierdzić swój adres e-mail, aby zalogować siÄ™!", + "You_need_confirm_email" : "Musisz potwierdzić swój adres e-mail, aby zalogować siÄ™!", "Your_Open_Source_solution" : "Twój wÅ‚asny czat Open Source", "You_will_not_be_able_to_recover" : "Nie bÄ™dziesz w stanie odzyskać!", "Yes_delete_it" : "Tak, usuÅ„ to!", diff --git a/i18n/pt.i18n.json b/i18n/pt.i18n.json index 67901ca35ab1e8c8a68e427beafb61973c169306..b3ea4672f2889cb93ef9e4c536080196bf5579fe 100644 --- a/i18n/pt.i18n.json +++ b/i18n/pt.i18n.json @@ -175,7 +175,7 @@ "Welcome_to_the" : "Bem-vindo ao", "With_whom" : "Com quem", "you_are_in_preview_mode_of" : "Esta é uma prévia do canal #<strong>__room_name__</strong>", - "You_neeed_confirm_email" : "Você precisa confirmar seu email para logar!", + "You_need_confirm_email" : "Você precisa confirmar seu email para logar!", "Your_Open_Source_solution" : "Sua própria solução Open Source", "You_will_not_be_able_to_recover" : "Você não será capaz de desfazer!", "Yes_delete_it" : "Sim, exclua!", diff --git a/i18n/ru.i18n.json b/i18n/ru.i18n.json index 7c3b70a03708e553a2720fbab1a0257eebe651fd..66f6b215e7d0f048aeacf0de883d32a397716654 100644 --- a/i18n/ru.i18n.json +++ b/i18n/ru.i18n.json @@ -167,7 +167,7 @@ "Welcome" : "Добро пожаловать, <em>%s</em>.", "Welcome_to_the" : "Добро пожаловать в", "you_are_in_preview_mode_of" : "Ð’Ñ‹ находитеÑÑŒ в режиме предварительного проÑмотра канала # <strong>__room_name__</strong>", - "You_neeed_confirm_email" : "Ðеобходимо подтвердить email Ð´Ð»Ñ Ð²Ñ…Ð¾Ð´Ð°!", + "You_need_confirm_email" : "Ðеобходимо подтвердить email Ð´Ð»Ñ Ð²Ñ…Ð¾Ð´Ð°!", "Your_Open_Source_solution" : "Ваш ÑобÑтвенный чат на базе Open Source-технологий", "You_will_not_be_able_to_recover" : "Ð’Ñ‹ не Ñможете воÑÑтановить!", "Yes_delete_it" : "Да, удалить его!" diff --git a/i18n/ta-IN.i18n.json b/i18n/ta-IN.i18n.json index 2a03468e9540e7b3fb3c0f7e997b92d135944dd5..f63cea319fda9d0f4be066248afd73e4c464b6fb 100644 --- a/i18n/ta-IN.i18n.json +++ b/i18n/ta-IN.i18n.json @@ -99,7 +99,7 @@ "View_All" : "அனைதà¯à®¤à¯ˆà®¯à¯à®®à¯ பாரà¯à®•à¯à®•", "Welcome" : "<em>% s</em> உஙà¯à®•à®³à¯ˆ வரவேறà¯à®•à®¿à®±à¯‹à®®à¯.", "With_whom" : "யாரà¯à®Ÿà®©à¯", - "You_neeed_confirm_email" : "நீஙà¯à®•à®³à¯ உளà¯à®¨à¯à®´à¯ˆà®¯ உஙà¯à®•à®³à¯ மினà¯à®©à®žà¯à®šà®²à¯ à®®à¯à®•à®µà®°à®¿à®¯à¯ˆ உறà¯à®¤à®¿à®ªà¯à®ªà®Ÿà¯à®¤à¯à®¤ வேணà¯à®Ÿà¯à®®à¯!", + "You_need_confirm_email" : "நீஙà¯à®•à®³à¯ உளà¯à®¨à¯à®´à¯ˆà®¯ உஙà¯à®•à®³à¯ மினà¯à®©à®žà¯à®šà®²à¯ à®®à¯à®•à®µà®°à®¿à®¯à¯ˆ உறà¯à®¤à®¿à®ªà¯à®ªà®Ÿà¯à®¤à¯à®¤ வேணà¯à®Ÿà¯à®®à¯!", "You_will_not_be_able_to_recover" : "நீஙà¯à®•à®³à¯ மீடà¯à®• à®®à¯à®Ÿà®¿à®¯à®¾à®¤à¯!", "Yes_delete_it" : "ஆமà¯, நீகà¯à®•à¯!", "Your_entry_has_been_deleted" : "உஙà¯à®•à®³à¯ உளà¯à®³à¯€à®Ÿà¯ நீகà¯à®•à®ªà¯à®ªà®Ÿà¯à®Ÿà¯à®µà®¿à®Ÿà¯à®Ÿà®¤à¯." diff --git a/i18n/tr.i18n.json b/i18n/tr.i18n.json index bc166b89499e1c123d0b3a6cee551195dd2478cf..ea55d3949fd6ef6315b376866ae7235a1924abb4 100644 --- a/i18n/tr.i18n.json +++ b/i18n/tr.i18n.json @@ -150,7 +150,7 @@ "Welcome_to_the" : "HoÅŸgeldiniz", "With_whom" : "Kiminle", "you_are_in_preview_mode_of" : "Kanal  #<strong>__room_name__</strong>", - "You_neeed_confirm_email" : "GiriÅŸ yapabilmek için öncelikle e-posta adresinizi onaylamanız gerekmektedir!", + "You_need_confirm_email" : "GiriÅŸ yapabilmek için öncelikle e-posta adresinizi onaylamanız gerekmektedir!", "Your_Open_Source_solution" : "Açık Kaynak Sohbet Uygulaması", "You_will_not_be_able_to_recover" : "Sen kurtarmak mümkün olmayacaktır!", "Yes_delete_it" : "Evet, bunu silin!", diff --git a/i18n/ug.i18n.json b/i18n/ug.i18n.json index a4a7e8896bbeb8fceaa15619a2c3f0cb0ca423eb..b8ef64cc2af9d385c80a14b52f49e34f1f08813e 100644 --- a/i18n/ug.i18n.json +++ b/i18n/ug.i18n.json @@ -137,6 +137,6 @@ "View_All" : "ھەممىنى كۆرۈش", "Welcome" : "ئەسسالامۇ-ئەلەيكۇم <em>%s</em>.", "Welcome_to_the" : "كەلگىنىزگە مەرھابا", - "You_neeed_confirm_email" : "ئىلخەتنى جەزملەشتۈرۈپ بولغاندىن ÙƒÛيىن كىرەلەيسىز!", + "You_need_confirm_email" : "ئىلخەتنى جەزملەشتۈرۈپ بولغاندىن ÙƒÛيىن كىرەلەيسىز!", "Your_Open_Source_solution" : "ئۆزىÚÙ‰Ø²Ù†Ù‰Ú Ø¦ÙˆÚ†Û‡Ù‚ كودلۇق پاراÚلىشىش Ú¾Û•Ù„ قىلىش ئۇسۇلى" } \ No newline at end of file diff --git a/i18n/uk.i18n.json b/i18n/uk.i18n.json index 83e7d7e986b8b01675e4ea1e9d248adaecd48e9e..060e3f84c8fc67b7dc2f1ba05aa934bd2c026c59 100644 --- a/i18n/uk.i18n.json +++ b/i18n/uk.i18n.json @@ -125,6 +125,6 @@ "We_have_sent_registration_email" : "Ми відправили вам по електронній пошті, щоб підтвердити Ñвою реєÑтрацію. Якщо ви не отримуєте електронну пошту найближчим чаÑом, будь лаÑка, повернутиÑÑ Ñ– Ñпробувати знову.", "Welcome" : "Вітаємо, <em>%s</em>.", "Welcome_to_the" : "ЛаÑкаво проÑимо в", - "You_neeed_confirm_email" : "Ð”Ð»Ñ Ð²Ñ…Ð¾Ð´Ñƒ необхідно підтвердити e-mail!", + "You_need_confirm_email" : "Ð”Ð»Ñ Ð²Ñ…Ð¾Ð´Ñƒ необхідно підтвердити e-mail!", "Your_Open_Source_solution" : "Ваш влаÑний Open Source чат" } \ No newline at end of file diff --git a/i18n/zh.i18n.json b/i18n/zh.i18n.json index f0ffe7c0cd29fc06d56bc6c84309ca1a9af4c28d..62bdabd53d08d62dc5d01d63f4d05ce055576ab8 100644 --- a/i18n/zh.i18n.json +++ b/i18n/zh.i18n.json @@ -124,6 +124,6 @@ "We_have_sent_registration_email" : "我们已ç»å‘您å‘出一å°ç”µå邮件,以确认您的注册。如果您没有收到邮件,请é‡è¯•ã€‚", "Welcome" : "欢迎 <em>%s</em>", "Welcome_to_the" : "欢迎æ¥åˆ°", - "You_neeed_confirm_email" : "登录å‰è¯·éªŒè¯æ‚¨çš„电å邮件ï¼", + "You_need_confirm_email" : "登录å‰è¯·éªŒè¯æ‚¨çš„电å邮件ï¼", "Your_Open_Source_solution" : "您自己的开æºèŠå¤©è§£å†³æ–¹æ¡ˆ" } \ No newline at end of file diff --git a/packages/rocketchat-lib/settings/server/startup.coffee b/packages/rocketchat-lib/settings/server/startup.coffee index 4a5a1a9cdb1ce47bd3a032eab811b1564f58ee36..543193d5042f233ef43f21b4e2fde6f04b0f4f85 100644 --- a/packages/rocketchat-lib/settings/server/startup.coffee +++ b/packages/rocketchat-lib/settings/server/startup.coffee @@ -21,6 +21,7 @@ Meteor.startup -> RocketChat.settings.add 'Accounts_Twitter', false, { type: 'boolean', group: 'Accounts' } RocketChat.settings.add 'Accounts_Twitter_id', '', { type: 'string', group: 'Accounts' } RocketChat.settings.add 'Accounts_Twitter_secret', '', { type: 'string', group: 'Accounts' } + RocketChat.settings.add 'Accounts_ManuallyApproveNewUsers', false, { type: 'boolean', group: 'Accounts' } RocketChat.settings.addGroup 'API' RocketChat.settings.add 'API_Analytics', '', { type: 'string', group: 'API', public: true } diff --git a/server/lib/accounts.coffee b/server/lib/accounts.coffee index e260e9d602ec4b28171f5e192fbbf713e43ae9f0..6667d7bb13f07dc257bb402971c0063b32381bb2 100644 --- a/server/lib/accounts.coffee +++ b/server/lib/accounts.coffee @@ -20,7 +20,7 @@ Accounts.onCreateUser (options, user) -> # console.log 'user ->',JSON.stringify user, null, ' ' user.status = 'offline' - user.active = true + user.active = not RocketChat.settings.get 'Accounts_ManuallyApproveNewUsers' serviceName = null @@ -59,7 +59,7 @@ Accounts.validateLoginAttempt (login) -> return login.allowed if login.user?.active isnt true - throw new Meteor.Error 'inactive-user', 'Your_user_has_been_deactivated' + throw new Meteor.Error 'inactive-user', TAPi18next.t 'project:User_is_not_activated' return false if login.type is 'password' and RocketChat.settings.get('Accounts_denyUnverifiedEmails') is true