Add resend confirmation for admin (#7378)

* Add confirmations_controller#resend

* Add tests for confirmations_controller#resend

* Add translations
This commit is contained in:
Shuhei Kitagawa 2018-05-06 17:59:03 +09:00 committed by Eugen Rochko
parent 8c35d163a5
commit bd10a7e480
35 changed files with 251 additions and 4 deletions

View File

@ -3,6 +3,7 @@
module Admin module Admin
class ConfirmationsController < BaseController class ConfirmationsController < BaseController
before_action :set_user before_action :set_user
before_action :check_confirmation, only: [:resend]
def create def create
authorize @user, :confirm? authorize @user, :confirm?
@ -11,10 +12,28 @@ module Admin
redirect_to admin_accounts_path redirect_to admin_accounts_path
end end
def resend
authorize @user, :confirm?
@user.resend_confirmation_instructions
log_action :confirm, @user
flash[:notice] = I18n.t('admin.accounts.resend_confirmation.success')
redirect_to admin_accounts_path
end
private private
def set_user def set_user
@user = Account.find(params[:account_id]).user || raise(ActiveRecord::RecordNotFound) @user = Account.find(params[:account_id]).user || raise(ActiveRecord::RecordNotFound)
end end
def check_confirmation
if @user.confirmed?
flash[:error] = I18n.t('admin.accounts.resend_confirmation.already_confirmed')
redirect_to admin_accounts_path
end
end
end end
end end

View File

@ -36,13 +36,19 @@
%th= t('admin.accounts.email') %th= t('admin.accounts.email')
%td %td
= @account.user_email = @account.user_email
- if @account.user_confirmed?
= fa_icon('check')
= table_link_to 'edit', t('admin.accounts.change_email.label'), admin_account_change_email_path(@account.id) if can?(:change_email, @account.user) = table_link_to 'edit', t('admin.accounts.change_email.label'), admin_account_change_email_path(@account.id) if can?(:change_email, @account.user)
- if @account.user_unconfirmed_email.present? - if @account.user_unconfirmed_email.present?
%th= t('admin.accounts.unconfirmed_email') %th= t('admin.accounts.unconfirmed_email')
%td %td
= @account.user_unconfirmed_email = @account.user_unconfirmed_email
%tr
%th= t('admin.accounts.email_status')
%td
- if @account.user&.confirmed?
= t('admin.accounts.confirmed')
- else
= t('admin.accounts.confirming')
= table_link_to 'refresh', t('admin.accounts.resend_confirmation.send'), resend_admin_account_confirmation_path(@account.id), method: :post if can?(:confirm, @account.user)
%tr %tr
%th= t('admin.accounts.login_status') %th= t('admin.accounts.login_status')
%td %td

View File

@ -61,6 +61,7 @@ ar:
by_domain: النطاق by_domain: النطاق
confirm: تأكيد confirm: تأكيد
confirmed: مؤكَّد confirmed: مؤكَّد
confirming: التأكد
demote: إنزال الرُتبة الوظيفية demote: إنزال الرُتبة الوظيفية
disable: تعطيل disable: تعطيل
disable_two_factor_authentication: تعطيل 2FA disable_two_factor_authentication: تعطيل 2FA
@ -69,6 +70,7 @@ ar:
domain: النطاق domain: النطاق
edit: تعديل edit: تعديل
email: البريد الإلكتروني email: البريد الإلكتروني
email_status: حالة البريد الإلكتروني
enable: تفعيل enable: تفعيل
enabled: مفعَّل enabled: مفعَّل
feed_url: عنوان رابط التغذية feed_url: عنوان رابط التغذية
@ -106,6 +108,10 @@ ar:
public: عمومي public: عمومي
push_subscription_expires: انتهاء الاشتراك ”PuSH“ push_subscription_expires: انتهاء الاشتراك ”PuSH“
redownload: تحديث الصورة الرمزية redownload: تحديث الصورة الرمزية
resend_confirmation:
already_confirmed: هذا المستخدم مؤكد بالفعل
send: أعد إرسال رسالة البريد الالكتروني الخاصة بالتأكيد
success: تم إرسال رسالة التأكيد بنجاح!
reset: إعادة التعيين reset: إعادة التعيين
reset_password: إعادة ضبط كلمة السر reset_password: إعادة ضبط كلمة السر
resubscribe: اشترك مرة أخرى resubscribe: اشترك مرة أخرى

View File

@ -70,6 +70,7 @@ ca:
title: Canviar adreça de correu de %{username} title: Canviar adreça de correu de %{username}
confirm: Confirma confirm: Confirma
confirmed: Confirmat confirmed: Confirmat
confirming: Confirmando
demote: Degrada demote: Degrada
disable: Inhabilita disable: Inhabilita
disable_two_factor_authentication: Desactiva 2FA disable_two_factor_authentication: Desactiva 2FA
@ -78,6 +79,7 @@ ca:
domain: Domini domain: Domini
edit: Edita edit: Edita
email: Correu electrònic email: Correu electrònic
email_status: Estado del correo electrónico
enable: Habilita enable: Habilita
enabled: Habilitat enabled: Habilitat
feed_url: URL del canal feed_url: URL del canal
@ -116,6 +118,10 @@ ca:
push_subscription_expires: La subscripció PuSH expira push_subscription_expires: La subscripció PuSH expira
redownload: Actualitza l'avatar redownload: Actualitza l'avatar
remove_avatar: Eliminar avatar remove_avatar: Eliminar avatar
resend_confirmation:
already_confirmed: Este usuario ya está confirmado
send: Reenviar el correo electrónico de confirmación
success: "¡Correo electrónico de confirmación enviado con éxito!"
reset: Reinicialitza reset: Reinicialitza
reset_password: Restableix la contrasenya reset_password: Restableix la contrasenya
resubscribe: Torna a subscriure resubscribe: Torna a subscriure

View File

@ -70,6 +70,7 @@ de:
title: E-Mail-Adresse für %{username} ändern title: E-Mail-Adresse für %{username} ändern
confirm: Bestätigen confirm: Bestätigen
confirmed: Bestätigt confirmed: Bestätigt
confirming: Bestätigung
demote: Degradieren demote: Degradieren
disable: Ausschalten disable: Ausschalten
disable_two_factor_authentication: 2FA abschalten disable_two_factor_authentication: 2FA abschalten
@ -78,6 +79,7 @@ de:
domain: Domain domain: Domain
edit: Bearbeiten edit: Bearbeiten
email: E-Mail email: E-Mail
email_status: E-Mail-Status
enable: Freischalten enable: Freischalten
enabled: Freigegeben enabled: Freigegeben
feed_url: Feed-URL feed_url: Feed-URL
@ -116,6 +118,10 @@ de:
push_subscription_expires: PuSH-Abonnement läuft aus push_subscription_expires: PuSH-Abonnement läuft aus
redownload: Avatar neu laden redownload: Avatar neu laden
remove_avatar: Profilbild entfernen remove_avatar: Profilbild entfernen
resend_confirmation:
already_confirmed: Dieser Benutzer wurde bereits bestätigt
send: Bestätigungsmail erneut senden
success: Bestätigungs-E-Mail erfolgreich gesendet!
reset: Zurücksetzen reset: Zurücksetzen
reset_password: Passwort zurücksetzen reset_password: Passwort zurücksetzen
resubscribe: Wieder abonnieren resubscribe: Wieder abonnieren

View File

@ -70,6 +70,7 @@ en:
title: Change Email for %{username} title: Change Email for %{username}
confirm: Confirm confirm: Confirm
confirmed: Confirmed confirmed: Confirmed
confirming: Confirming
demote: Demote demote: Demote
disable: Disable disable: Disable
disable_two_factor_authentication: Disable 2FA disable_two_factor_authentication: Disable 2FA
@ -78,6 +79,7 @@ en:
domain: Domain domain: Domain
edit: Edit edit: Edit
email: E-mail email: E-mail
email_status: E-mail Status
enable: Enable enable: Enable
enabled: Enabled enabled: Enabled
feed_url: Feed URL feed_url: Feed URL
@ -116,6 +118,10 @@ en:
push_subscription_expires: PuSH subscription expires push_subscription_expires: PuSH subscription expires
redownload: Refresh avatar redownload: Refresh avatar
remove_avatar: Remove avatar remove_avatar: Remove avatar
resend_confirmation:
already_confirmed: This user is already confirmed
send: Resend confirmation email
success: Confirmation email successfully sent!
reset: Reset reset: Reset
reset_password: Reset password reset_password: Reset password
resubscribe: Resubscribe resubscribe: Resubscribe

View File

@ -61,6 +61,7 @@ eo:
by_domain: Domajno by_domain: Domajno
confirm: Konfirmi confirm: Konfirmi
confirmed: Konfirmita confirmed: Konfirmita
confirming: Konfirmante
demote: Degradi demote: Degradi
disable: Malebligi disable: Malebligi
disable_two_factor_authentication: Malebligi 2FA disable_two_factor_authentication: Malebligi 2FA
@ -69,6 +70,7 @@ eo:
domain: Domajno domain: Domajno
edit: Redakti edit: Redakti
email: Retpoŝto email: Retpoŝto
email_status: Retpoŝto Stato
enable: Ebligi enable: Ebligi
enabled: Ebligita enabled: Ebligita
feed_url: URL de la fluo feed_url: URL de la fluo
@ -106,6 +108,10 @@ eo:
public: Publika public: Publika
push_subscription_expires: Eksvalidiĝo de la abono al PuSH push_subscription_expires: Eksvalidiĝo de la abono al PuSH
redownload: Aktualigi profilbildon redownload: Aktualigi profilbildon
resend_confirmation:
already_confirmed: Ĉi tiu uzanto jam estas konfirmita
send: Esend konfirmi retpoŝton
success: Konfirma retpoŝto sukcese sendis
reset: Restarigi reset: Restarigi
reset_password: Restarigi pasvorton reset_password: Restarigi pasvorton
resubscribe: Reaboni resubscribe: Reaboni

View File

@ -70,6 +70,7 @@ es:
title: Cambiar el correo electrónico de %{username} title: Cambiar el correo electrónico de %{username}
confirm: Confirmar confirm: Confirmar
confirmed: Confirmado confirmed: Confirmado
confirming: Confirmando
demote: Degradar demote: Degradar
disable: Deshabilitar disable: Deshabilitar
disable_two_factor_authentication: Desactivar autenticación de dos factores disable_two_factor_authentication: Desactivar autenticación de dos factores
@ -78,6 +79,7 @@ es:
domain: Dominio domain: Dominio
edit: Editar edit: Editar
email: E-mail email: E-mail
email_status: E-mail Status
enable: Habilitar enable: Habilitar
enabled: Habilitada enabled: Habilitada
feed_url: URL de notificaciones feed_url: URL de notificaciones
@ -116,6 +118,10 @@ es:
push_subscription_expires: Expiración de la suscripción PuSH push_subscription_expires: Expiración de la suscripción PuSH
redownload: Refrescar avatar redownload: Refrescar avatar
remove_avatar: Eliminar el avatar remove_avatar: Eliminar el avatar
resend_confirmation:
already_confirmed: Este usuario ya está confirmado
send: Reenviar el correo electrónico de confirmación
success: "¡Correo electrónico de confirmación enviado con éxito"
reset: Reiniciar reset: Reiniciar
reset_password: Reiniciar contraseña reset_password: Reiniciar contraseña
resubscribe: Re-suscribir resubscribe: Re-suscribir

View File

@ -61,6 +61,7 @@ fa:
by_domain: دامین by_domain: دامین
confirm: تأیید confirm: تأیید
confirmed: تأیید شد confirmed: تأیید شد
confirming: تأیید
demote: تنزل‌دادن demote: تنزل‌دادن
disable: غیرفعال disable: غیرفعال
disable_two_factor_authentication: غیرفعال‌سازی ورود دومرحله‌ای disable_two_factor_authentication: غیرفعال‌سازی ورود دومرحله‌ای
@ -69,6 +70,7 @@ fa:
domain: دامین domain: دامین
edit: ویرایش edit: ویرایش
email: ایمیل email: ایمیل
email_status: وضعیت ایمیل
enable: فعال enable: فعال
enabled: فعال enabled: فعال
feed_url: نشانی فید feed_url: نشانی فید
@ -106,6 +108,10 @@ fa:
public: عمومی public: عمومی
push_subscription_expires: عضویت از راه PuSH منقضی شد push_subscription_expires: عضویت از راه PuSH منقضی شد
redownload: به‌روزرسانی تصویر نمایه redownload: به‌روزرسانی تصویر نمایه
resend_confirmation:
already_confirmed: این کاربر قبلا تایید شده است
send: ایمیل تایید را دوباره بفرستید
success: ایمیل تایید با موفقیت ارسال شد
reset: بازنشانی reset: بازنشانی
reset_password: بازنشانی رمز reset_password: بازنشانی رمز
resubscribe: اشتراک دوباره resubscribe: اشتراک دوباره

View File

@ -61,6 +61,7 @@ fi:
by_domain: Verkko-osoite by_domain: Verkko-osoite
confirm: Vahvista confirm: Vahvista
confirmed: Vahvistettu confirmed: Vahvistettu
confirming: Vahvistavat
demote: Alenna demote: Alenna
disable: Poista käytöstä disable: Poista käytöstä
disable_two_factor_authentication: Poista 2FA käytöstä disable_two_factor_authentication: Poista 2FA käytöstä
@ -69,6 +70,7 @@ fi:
domain: Verkko-osoite domain: Verkko-osoite
edit: Muokkaa edit: Muokkaa
email: Sähköposti email: Sähköposti
email_status: Sähköpostin tila
enable: Ota käyttöön enable: Ota käyttöön
enabled: Käytössä enabled: Käytössä
feed_url: Syötteen URL feed_url: Syötteen URL
@ -106,6 +108,10 @@ fi:
public: Julkinen public: Julkinen
push_subscription_expires: PuSH-tilaus vanhenee push_subscription_expires: PuSH-tilaus vanhenee
redownload: Päivitä profiilikuva redownload: Päivitä profiilikuva
resend_confirmation:
already_confirmed: Tämä käyttäjä on jo vahvistettu
send: Lähetä varmistusviesti uudelleen
success: Vahvistusviesti lähetettiin onnistuneesti
reset: Palauta reset: Palauta
reset_password: Palauta salasana reset_password: Palauta salasana
resubscribe: Tilaa uudelleen resubscribe: Tilaa uudelleen

View File

@ -70,6 +70,7 @@ fr:
title: Modifier le courriel pour %{username} title: Modifier le courriel pour %{username}
confirm: Confirmer confirm: Confirmer
confirmed: Confirmé confirmed: Confirmé
confirming: Confirmant
demote: Rétrograder demote: Rétrograder
disable: Désactiver disable: Désactiver
disable_two_factor_authentication: Désactiver lauthentification à deux facteurs disable_two_factor_authentication: Désactiver lauthentification à deux facteurs
@ -78,6 +79,7 @@ fr:
domain: Domaine domain: Domaine
edit: Éditer edit: Éditer
email: Courriel email: Courriel
email_status: État de la messagerie
enable: Activer enable: Activer
enabled: Activé enabled: Activé
feed_url: URL du flux feed_url: URL du flux
@ -116,6 +118,10 @@ fr:
push_subscription_expires: Expiration de labonnement PuSH push_subscription_expires: Expiration de labonnement PuSH
redownload: Rafraîchir les avatars redownload: Rafraîchir les avatars
remove_avatar: Supprimer l'avatar remove_avatar: Supprimer l'avatar
resend_confirmation:
already_confirmed: Cet utilisateur est déjà confirmé
send: Renvoyer un courriel de confirmation
success: Email de confirmation envoyé avec succès !
reset: Réinitialiser reset: Réinitialiser
reset_password: Réinitialiser le mot de passe reset_password: Réinitialiser le mot de passe
resubscribe: Se réabonner resubscribe: Se réabonner

View File

@ -70,6 +70,7 @@ gl:
title: Cambiar o correo-e de %{username} title: Cambiar o correo-e de %{username}
confirm: Confirmar confirm: Confirmar
confirmed: Confirmado confirmed: Confirmado
confirming: Confirmar
demote: Degradar demote: Degradar
disable: Deshabilitar disable: Deshabilitar
disable_two_factor_authentication: Deshabilitar 2FA disable_two_factor_authentication: Deshabilitar 2FA
@ -78,6 +79,7 @@ gl:
domain: Dominio domain: Dominio
edit: Editar edit: Editar
email: E-mail email: E-mail
email_status: Estado del correo electrónico
enable: Habilitar enable: Habilitar
enabled: Habilitado enabled: Habilitado
feed_url: URL fonte feed_url: URL fonte
@ -116,6 +118,10 @@ gl:
push_subscription_expires: A suscrición PuSH caduca push_subscription_expires: A suscrición PuSH caduca
redownload: Actualizar avatar redownload: Actualizar avatar
remove_avatar: Eliminar avatar remove_avatar: Eliminar avatar
resend_confirmation:
already_confirmed: Este usuario ya está confirmado
send: Reenviar el correo electrónico de confirmación
success: "¡Correo electrónico de confirmación enviado con éxito!"
reset: Restablecer reset: Restablecer
reset_password: Restablecer contrasinal reset_password: Restablecer contrasinal
resubscribe: Voltar a suscribir resubscribe: Voltar a suscribir

View File

@ -61,6 +61,7 @@ he:
by_domain: שם מתחם by_domain: שם מתחם
confirm: אישור confirm: אישור
confirmed: אושר confirmed: אושר
confirming: המאשר
demote: הורדה בדרגה demote: הורדה בדרגה
disable: לחסום disable: לחסום
disable_two_factor_authentication: ביטול הזדהות דו-שלבית disable_two_factor_authentication: ביטול הזדהות דו-שלבית
@ -69,6 +70,7 @@ he:
domain: תחום domain: תחום
edit: עריכה edit: עריכה
email: דוא"ל email: דוא"ל
email_status: סטטוס דוא"ל
enable: לאפשר enable: לאפשר
enabled: מאופשר enabled: מאופשר
feed_url: כתובת פיד feed_url: כתובת פיד
@ -106,6 +108,10 @@ he:
public: פומבי public: פומבי
push_subscription_expires: הרשמה להודעות בדחיפה פגה push_subscription_expires: הרשמה להודעות בדחיפה פגה
redownload: לקריאה מחדש של האווטאר redownload: לקריאה מחדש של האווטאר
resend_confirmation:
already_confirmed: משתמש זה כבר אושר
send: שלח מחדש דוא"ל אימות
success: הודעת האימייל נשלחה בהצלחה!
reset: איפוס reset: איפוס
reset_password: אתחול סיסמא reset_password: אתחול סיסמא
resubscribe: להרשם מחדש resubscribe: להרשם מחדש

View File

@ -61,6 +61,7 @@ hu:
by_domain: Domain by_domain: Domain
confirm: Megerősítés confirm: Megerősítés
confirmed: Megerősítve confirmed: Megerősítve
confirming: Megerősítve
demote: Lefokozás demote: Lefokozás
disable: Kikapcsolás disable: Kikapcsolás
disable_two_factor_authentication: Kétlépcsős azonosítás kikapcsolása disable_two_factor_authentication: Kétlépcsős azonosítás kikapcsolása
@ -69,6 +70,7 @@ hu:
domain: Domain domain: Domain
edit: Szerkesztés edit: Szerkesztés
email: E-mail email: E-mail
email_status: E-mail állapot
enable: Engedélyezés enable: Engedélyezés
enabled: Engedélyezve enabled: Engedélyezve
feed_url: Hírcsatorna URL feed_url: Hírcsatorna URL
@ -106,6 +108,10 @@ hu:
public: Nyilvános public: Nyilvános
push_subscription_expires: A PuSH feliratkozás elévül push_subscription_expires: A PuSH feliratkozás elévül
redownload: Profilkép frissítése redownload: Profilkép frissítése
resend_confirmation:
already_confirmed: Ezt a felhasználót már megerősítették
send: Küldd újra a megerősítő email-t
success: A megerősítő e-mail sikeresen elküldve!
reset: Visszaállítás reset: Visszaállítás
reset_password: Jelszó visszaállítása reset_password: Jelszó visszaállítása
resubscribe: Feliratkozás ismét resubscribe: Feliratkozás ismét

View File

@ -29,10 +29,12 @@ id:
are_you_sure: Anda yakin? are_you_sure: Anda yakin?
confirm: Konfirmasi confirm: Konfirmasi
confirmed: Dikonfirmasi confirmed: Dikonfirmasi
confirming: Mengkonfirmasi
display_name: Nama display_name: Nama
domain: Domain domain: Domain
edit: Ubah edit: Ubah
email: E-mail email: E-mail
email_status: Status Email
feed_url: URL Feed feed_url: URL Feed
followers: Pengikut followers: Pengikut
follows: Mengikut follows: Mengikut
@ -58,6 +60,10 @@ id:
profile_url: URL profil profile_url: URL profil
public: Publik public: Publik
push_subscription_expires: Langganan PuSH telah kadaluarsa push_subscription_expires: Langganan PuSH telah kadaluarsa
resend_confirmation:
already_confirmed: Pengguna ini sudah dikonfirmasi
send: Kirim ulang email konfirmasi
success: Email konfirmasi berhasil dikirim!
reset_password: Reset kata sandi reset_password: Reset kata sandi
salmon_url: URL Salmon salmon_url: URL Salmon
show: show:

View File

@ -66,6 +66,7 @@ it:
title: Cambia email per %{username} title: Cambia email per %{username}
confirm: Conferma confirm: Conferma
confirmed: Confermato confirmed: Confermato
confirming: Confermando
demote: Declassa demote: Declassa
disable: Disabilita disable: Disabilita
disable_two_factor_authentication: Disabilita 2FA disable_two_factor_authentication: Disabilita 2FA
@ -74,6 +75,7 @@ it:
domain: Dominio domain: Dominio
edit: Modifica edit: Modifica
email: Email email: Email
email_status: Stato email
enable: Abilita enable: Abilita
enabled: Abilitato enabled: Abilitato
feed_url: URL Feed feed_url: URL Feed
@ -111,6 +113,10 @@ it:
public: Pubblico public: Pubblico
redownload: Aggiorna avatar redownload: Aggiorna avatar
remove_avatar: Rimuovi avatar remove_avatar: Rimuovi avatar
resend_confirmation:
already_confirmed: Questo utente è già confermato
send: Reinvia email di conferma
success: Email di conferma inviata con successo!
reset: Reimposta reset: Reimposta
reset_password: Reimposta password reset_password: Reimposta password
resubscribe: Riscriversi resubscribe: Riscriversi

View File

@ -70,6 +70,7 @@ ja:
title: "%{username} さんのメールアドレスを変更" title: "%{username} さんのメールアドレスを変更"
confirm: 確認 confirm: 確認
confirmed: 確認済み confirmed: 確認済み
confirming: 確認中
demote: 降格 demote: 降格
disable: 無効化 disable: 無効化
disable_two_factor_authentication: 二段階認証を無効にする disable_two_factor_authentication: 二段階認証を無効にする
@ -78,6 +79,7 @@ ja:
domain: ドメイン domain: ドメイン
edit: 編集 edit: 編集
email: メールアドレス email: メールアドレス
email_status: メールアドレスの状態
enable: 有効化 enable: 有効化
enabled: 有効 enabled: 有効
feed_url: フィードURL feed_url: フィードURL
@ -116,6 +118,10 @@ ja:
push_subscription_expires: PuSH購読期限 push_subscription_expires: PuSH購読期限
redownload: アバターの更新 redownload: アバターの更新
remove_avatar: アイコンを削除 remove_avatar: アイコンを削除
resend_confirmation:
already_confirmed: メールアドレスは確認済みです。
send: 確認メールを再送
success: 確認メールを再送信しました!
reset: リセット reset: リセット
reset_password: パスワード再設定 reset_password: パスワード再設定
resubscribe: 再講読 resubscribe: 再講読

View File

@ -70,6 +70,7 @@ ko:
title: "%{username}의 이메일 주소 변경" title: "%{username}의 이메일 주소 변경"
confirm: 확인 confirm: 확인
confirmed: 확인됨 confirmed: 확인됨
confirming: 확인 중
demote: 모더레이터 강등 demote: 모더레이터 강등
disable: 비활성화 disable: 비활성화
disable_two_factor_authentication: 2단계 인증을 비활성화 disable_two_factor_authentication: 2단계 인증을 비활성화
@ -78,6 +79,7 @@ ko:
domain: 도메인 domain: 도메인
edit: 편집 edit: 편집
email: E-mail email: E-mail
email_status: 이메일 상태
enable: 활성화 enable: 활성화
enabled: 활성화된 enabled: 활성화된
feed_url: 피드 URL feed_url: 피드 URL
@ -116,6 +118,10 @@ ko:
push_subscription_expires: PuSH 구독 기간 만료 push_subscription_expires: PuSH 구독 기간 만료
redownload: 아바타 업데이트 redownload: 아바타 업데이트
remove_avatar: 아바타 지우기 remove_avatar: 아바타 지우기
resend_confirmation:
already_confirmed: 이 사용자는 이미 확인되었습니다.
send: 다시 확인 이메일
success: 확인 이메일이 전송되었습니다.
reset: 초기화 reset: 초기화
reset_password: 비밀번호 초기화 reset_password: 비밀번호 초기화
resubscribe: 다시 구독 resubscribe: 다시 구독

View File

@ -70,6 +70,7 @@ nl:
title: E-mailadres veranderen voor %{username} title: E-mailadres veranderen voor %{username}
confirm: Bevestigen confirm: Bevestigen
confirmed: Bevestigd confirmed: Bevestigd
confirming: Bevestiging
demote: Degraderen demote: Degraderen
disable: Uitschakelen disable: Uitschakelen
disable_two_factor_authentication: 2FA uitschakelen disable_two_factor_authentication: 2FA uitschakelen
@ -78,6 +79,7 @@ nl:
domain: Domein domain: Domein
edit: Bewerken edit: Bewerken
email: E-mail email: E-mail
email_status: E-mail Status
enable: Inschakelen enable: Inschakelen
enabled: Ingeschakeld enabled: Ingeschakeld
feed_url: Feed-URL feed_url: Feed-URL
@ -116,6 +118,10 @@ nl:
push_subscription_expires: PuSH-abonnement verloopt op push_subscription_expires: PuSH-abonnement verloopt op
redownload: Avatar vernieuwen redownload: Avatar vernieuwen
remove_avatar: Avatar verwijderen remove_avatar: Avatar verwijderen
resend_confirmation:
already_confirmed: Deze gebruiker is al bevestigd
send: Verzend bevestigingsmail opnieuw
success: Bevestigingsmail succesvol verzonden!
reset: Opnieuw reset: Opnieuw
reset_password: Wachtwoord opnieuw instellen reset_password: Wachtwoord opnieuw instellen
resubscribe: Opnieuw abonneren resubscribe: Opnieuw abonneren

View File

@ -61,6 +61,7 @@
by_domain: Domene by_domain: Domene
confirm: Bekreft confirm: Bekreft
confirmed: Bekreftet confirmed: Bekreftet
confirming: Bekrefte
demote: Degrader demote: Degrader
disable: Deaktiver disable: Deaktiver
disable_two_factor_authentication: Skru av 2FA disable_two_factor_authentication: Skru av 2FA
@ -69,6 +70,7 @@
domain: Domene domain: Domene
edit: Redigér edit: Redigér
email: E-post email: E-post
email_status: E-poststatus
enable: Aktiver enable: Aktiver
enabled: Aktivert enabled: Aktivert
feed_url: Feed-URL feed_url: Feed-URL
@ -106,6 +108,10 @@
public: Offentlig public: Offentlig
push_subscription_expires: PuSH-abonnent utløper push_subscription_expires: PuSH-abonnent utløper
redownload: Oppdater avatar redownload: Oppdater avatar
resend_confirmation:
already_confirmed: Denne brukeren er allerede bekreftet
send: Send bekreftelses-epost på nytt
success: Bekreftelses e-post er vellykket sendt!
reset: Tilbakestill reset: Tilbakestill
reset_password: Nullstill passord reset_password: Nullstill passord
resubscribe: Abonner på nytt resubscribe: Abonner på nytt

View File

@ -70,6 +70,7 @@ oc:
title: Cambiar ladreça a %{username} title: Cambiar ladreça a %{username}
confirm: Confirmar confirm: Confirmar
confirmed: Confirmat confirmed: Confirmat
confirming: Confirmando
demote: Retrogradar demote: Retrogradar
disable: Desactivar disable: Desactivar
disable_two_factor_authentication: Desactivar 2FA disable_two_factor_authentication: Desactivar 2FA
@ -78,6 +79,7 @@ oc:
domain: Domeni domain: Domeni
edit: Modificar edit: Modificar
email: Corrièl email: Corrièl
email_status: Estado del correo electrónico
enable: Activar enable: Activar
enabled: Activat enabled: Activat
feed_url: Flux URL feed_url: Flux URL
@ -116,6 +118,10 @@ oc:
push_subscription_expires: Fin de labonament PuSH push_subscription_expires: Fin de labonament PuSH
redownload: Actualizar los avatars redownload: Actualizar los avatars
remove_avatar: Supriir lavatar remove_avatar: Supriir lavatar
resend_confirmation:
already_confirmed: Este usuario ya está confirmado
send: Reenviar el correo electrónico de confirmación
success: "¡Correo electrónico de confirmación enviado con éxito!"
reset: Reïnicializar reset: Reïnicializar
reset_password: Reïnicializar lo senhal reset_password: Reïnicializar lo senhal
resubscribe: Se tornar abonar resubscribe: Se tornar abonar

View File

@ -70,6 +70,7 @@ pl:
title: Zmień adres e-mail dla %{username} title: Zmień adres e-mail dla %{username}
confirm: Potwierdź confirm: Potwierdź
confirmed: Potwierdzono confirmed: Potwierdzono
confirming: Potwierdzam
demote: Degraduj demote: Degraduj
disable: Dezaktywuj disable: Dezaktywuj
disable_two_factor_authentication: Wyłącz uwierzytelnianie dwuetapowe disable_two_factor_authentication: Wyłącz uwierzytelnianie dwuetapowe
@ -78,6 +79,7 @@ pl:
domain: Domena domain: Domena
edit: Edytuj edit: Edytuj
email: Adres e-mail email: Adres e-mail
email_status: Status e-maila
enable: Aktywuj enable: Aktywuj
enabled: Aktywowano enabled: Aktywowano
feed_url: Adres kanału feed_url: Adres kanału
@ -116,6 +118,10 @@ pl:
push_subscription_expires: Subskrypcja PuSH wygasa push_subscription_expires: Subskrypcja PuSH wygasa
redownload: Odśwież awatar redownload: Odśwież awatar
remove_avatar: Usun awatar remove_avatar: Usun awatar
resend_confirmation:
already_confirmed: Ten użytkownik jest już potwierdzony
send: Wyślij ponownie email potwierdzający
success: E-mail z potwierdzeniem został wysłany!
reset: Resetuj reset: Resetuj
reset_password: Resetuj hasło reset_password: Resetuj hasło
resubscribe: Ponów subskrypcję resubscribe: Ponów subskrypcję

View File

@ -70,6 +70,7 @@ pt-BR:
title: Mudar e-mail para %{username} title: Mudar e-mail para %{username}
confirm: Confirmar confirm: Confirmar
confirmed: Confirmado confirmed: Confirmado
confirming: Confirmando
demote: Rebaixar demote: Rebaixar
disable: Desativar disable: Desativar
disable_two_factor_authentication: Desativar 2FA disable_two_factor_authentication: Desativar 2FA
@ -78,6 +79,7 @@ pt-BR:
domain: Domínio domain: Domínio
edit: Editar edit: Editar
email: E-mail email: E-mail
email_status: Estado del correo electrónico
enable: Ativar enable: Ativar
enabled: Ativado enabled: Ativado
feed_url: URL do feed feed_url: URL do feed
@ -116,6 +118,10 @@ pt-BR:
push_subscription_expires: Inscrição PuSH expira push_subscription_expires: Inscrição PuSH expira
redownload: Atualizar avatar redownload: Atualizar avatar
remove_avatar: Remover avatar remove_avatar: Remover avatar
resend_confirmation:
already_confirmed: Este usuario ya está confirmado
send: Reenviar el correo electrónico de confirmación
success: "¡Correo electrónico de confirmación enviado con éxito!"
reset: Anular reset: Anular
reset_password: Modificar senha reset_password: Modificar senha
resubscribe: Reinscrever-se resubscribe: Reinscrever-se

View File

@ -61,6 +61,7 @@ pt:
by_domain: Domínio by_domain: Domínio
confirm: Confirme confirm: Confirme
confirmed: Confirmado confirmed: Confirmado
confirming: Confirmer
demote: Rebaixar demote: Rebaixar
disable: Desativar disable: Desativar
disable_two_factor_authentication: Desativar 2FA disable_two_factor_authentication: Desativar 2FA
@ -69,6 +70,7 @@ pt:
domain: Domínio domain: Domínio
edit: Editar edit: Editar
email: E-mail email: E-mail
email_status: État de la messagerie
enable: Ativar enable: Ativar
enabled: Ativado enabled: Ativado
feed_url: URL do Feed feed_url: URL do Feed
@ -106,6 +108,10 @@ pt:
public: Público public: Público
push_subscription_expires: A Inscrição PuSH expira push_subscription_expires: A Inscrição PuSH expira
redownload: Atualizar avatar redownload: Atualizar avatar
resend_confirmation:
already_confirmed: Cet utilisateur est déjà confirmé
send: Renvoyer un courriel de confirmation
success: Email de confirmation envoyé avec succès!
reset: Restaurar reset: Restaurar
reset_password: Reset palavra-passe reset_password: Reset palavra-passe
resubscribe: Reinscrever resubscribe: Reinscrever

View File

@ -61,6 +61,7 @@ ru:
by_domain: Домен by_domain: Домен
confirm: Подтвердить confirm: Подтвердить
confirmed: Подтверждено confirmed: Подтверждено
confirming: подтверждающий
demote: Разжаловать demote: Разжаловать
disable: Отключить disable: Отключить
disable_two_factor_authentication: Отключить 2FA disable_two_factor_authentication: Отключить 2FA
@ -69,6 +70,7 @@ ru:
domain: Домен domain: Домен
edit: Изменить edit: Изменить
email: E-mail email: E-mail
email_status: Статус электронной почты
enable: Включить enable: Включить
enabled: Включен enabled: Включен
feed_url: URL фида feed_url: URL фида
@ -106,6 +108,10 @@ ru:
public: Публичный public: Публичный
push_subscription_expires: Подписка PuSH истекает push_subscription_expires: Подписка PuSH истекает
redownload: Обновить аватар redownload: Обновить аватар
resend_confirmation:
already_confirmed: Этот пользователь уже подтвержден
send: Повторно отправить подтверждение по электронной почте
success: Письмо с подтверждением успешно отправлено!
reset: Сбросить reset: Сбросить
reset_password: Сбросить пароль reset_password: Сбросить пароль
resubscribe: Переподписаться resubscribe: Переподписаться

View File

@ -70,6 +70,7 @@ sk:
title: Zmeň email pre %{username} title: Zmeň email pre %{username}
confirm: Potvrdiť confirm: Potvrdiť
confirmed: Potvrdený confirmed: Potvrdený
confirming: Potvrdzujúci
demote: Degradovať demote: Degradovať
disable: Zablokovať disable: Zablokovať
disable_two_factor_authentication: Zakázať 2FA disable_two_factor_authentication: Zakázať 2FA
@ -78,6 +79,7 @@ sk:
domain: Doména domain: Doména
edit: Upraviť edit: Upraviť
email: Email email: Email
email_status: Stav Email
enable: Povoliť enable: Povoliť
enabled: Povolený enabled: Povolený
feed_url: URL časovej osi feed_url: URL časovej osi
@ -116,6 +118,10 @@ sk:
push_subscription_expires: PuSH odoberanie expiruje push_subscription_expires: PuSH odoberanie expiruje
redownload: Obnoviť avatar redownload: Obnoviť avatar
remove_avatar: Odstrániť avatár remove_avatar: Odstrániť avatár
resend_confirmation:
already_confirmed: Tento používateľ už bol potvrdený
send: Znova odoslať potvrdzovací e-mail
success: Potvrdený e-mail bol úspešne odoslaný!
reset: Reset reset: Reset
reset_password: Obnoviť heslo reset_password: Obnoviť heslo
resubscribe: Znovu odoberať resubscribe: Znovu odoberať

View File

@ -61,6 +61,7 @@ sr-Latn:
by_domain: Domen by_domain: Domen
confirm: Potvrdi confirm: Potvrdi
confirmed: Potvrđeno confirmed: Potvrđeno
confirming: Potvrđujući
demote: Ražaluj demote: Ražaluj
disable: Isključi disable: Isključi
disable_two_factor_authentication: Isključi 2FA disable_two_factor_authentication: Isključi 2FA
@ -69,6 +70,7 @@ sr-Latn:
domain: Domen domain: Domen
edit: Izmeni edit: Izmeni
email: E-pošta email: E-pošta
email_status: Status e-pošte
enable: Uključi enable: Uključi
enabled: Uključeno enabled: Uključeno
feed_url: Adresa dovoda feed_url: Adresa dovoda
@ -106,6 +108,10 @@ sr-Latn:
public: Javno public: Javno
push_subscription_expires: PuSH subscription expires push_subscription_expires: PuSH subscription expires
redownload: Osveži avatar redownload: Osveži avatar
resend_confirmation:
already_confirmed: Ovaj korisnik je već potvrđen
send: Ponovo pošaljite e-poruku za potvrdu
success: E-mail potvrde je uspešno poslat!
reset: Resetuj reset: Resetuj
reset_password: Resetuj lozinku reset_password: Resetuj lozinku
resubscribe: Ponovo se pretplati resubscribe: Ponovo se pretplati

View File

@ -61,6 +61,7 @@ sr:
by_domain: Домен by_domain: Домен
confirm: Потврди confirm: Потврди
confirmed: Потврђено confirmed: Потврђено
confirming: Потврдување
demote: Ражалуј demote: Ражалуј
disable: Искључи disable: Искључи
disable_two_factor_authentication: Искључи 2FA disable_two_factor_authentication: Искључи 2FA
@ -69,6 +70,7 @@ sr:
domain: Домен domain: Домен
edit: Измени edit: Измени
email: Е-пошта email: Е-пошта
email_status: Е-пошта статус
enable: Укључи enable: Укључи
enabled: Укључено enabled: Укључено
feed_url: Адреса довода feed_url: Адреса довода
@ -106,6 +108,10 @@ sr:
public: Јавно public: Јавно
push_subscription_expires: PuSH subscription expires push_subscription_expires: PuSH subscription expires
redownload: Освежи аватар redownload: Освежи аватар
resend_confirmation:
already_confirmed: Овој корисник е веќе потврден
send: Препрати го е-мајлот за потврда
success: Е-пошта за потврда успешно испратена!
reset: Ресетуј reset: Ресетуј
reset_password: Ресетуј лозинку reset_password: Ресетуј лозинку
resubscribe: Поново се претплати resubscribe: Поново се претплати

View File

@ -70,6 +70,7 @@ sv:
title: Byt E-postadress för %{username} title: Byt E-postadress för %{username}
confirm: Bekräfta confirm: Bekräfta
confirmed: Bekräftad confirmed: Bekräftad
confirming: Bekräftande
demote: Degradera demote: Degradera
disable: inaktivera disable: inaktivera
disable_two_factor_authentication: Inaktivera 2FA disable_two_factor_authentication: Inaktivera 2FA
@ -78,6 +79,7 @@ sv:
domain: Domän domain: Domän
edit: Redigera edit: Redigera
email: E-post email: E-post
email_status: E-poststatus
enable: Aktivera enable: Aktivera
enabled: Aktiverad enabled: Aktiverad
feed_url: Flödes URL feed_url: Flödes URL
@ -116,6 +118,10 @@ sv:
push_subscription_expires: PuSH-prenumerationen löper ut push_subscription_expires: PuSH-prenumerationen löper ut
redownload: Uppdatera avatar redownload: Uppdatera avatar
remove_avatar: Ta bort avatar remove_avatar: Ta bort avatar
resend_confirmation:
already_confirmed: Den här användaren är redan bekräftad
send: Skicka om e-postbekräftelse
success: Bekräftelsemeddelande skickas framgångsrikt!
reset: Återställ reset: Återställ
reset_password: Återställ lösenord reset_password: Återställ lösenord
resubscribe: Starta en ny prenumeration resubscribe: Starta en ny prenumeration

View File

@ -29,11 +29,13 @@ th:
are_you_sure: แน่ใจนะ? are_you_sure: แน่ใจนะ?
confirm: ยืนยัน confirm: ยืนยัน
confirmed: ยึนยันแล้ว confirmed: ยึนยันแล้ว
confirming: ยืนยัน
disable_two_factor_authentication: Disable 2FA disable_two_factor_authentication: Disable 2FA
display_name: ชื่อสำหรับดีสเพล display_name: ชื่อสำหรับดีสเพล
domain: โดแมน domain: โดแมน
edit: แก้ไข edit: แก้ไข
email: อีเมล์ email: อีเมล์
email_status: สถานะอีเมล
feed_url: Feed URL feed_url: Feed URL
followers: ผู้ติดตาม followers: ผู้ติดตาม
follows: ติดตาม follows: ติดตาม
@ -59,6 +61,10 @@ th:
profile_url: Profile URL profile_url: Profile URL
public: สาธารณะ public: สาธารณะ
push_subscription_expires: PuSH subscription expires push_subscription_expires: PuSH subscription expires
resend_confirmation:
already_confirmed: ผู้ใช้รายนี้ได้รับการยืนยันแล้ว
send: ส่งอีเมลยืนยันอีกครั้ง
success: ยืนยันอีเมลเรียบร้อยแล้ว!
reset_password: รีเซ็ตรหัสผ่าน reset_password: รีเซ็ตรหัสผ่าน
salmon_url: Salmon URL salmon_url: Salmon URL
show: show:

View File

@ -29,10 +29,12 @@ tr:
are_you_sure: Emin misiniz? are_you_sure: Emin misiniz?
confirm: Onayla confirm: Onayla
confirmed: Onaylandı confirmed: Onaylandı
confirming: Onaylama
display_name: Görünen adınız display_name: Görünen adınız
domain: Sunucu domain: Sunucu
edit: Düzenle edit: Düzenle
email: E-posta email: E-posta
email_status: Email Durumu
feed_url: Besleme linki feed_url: Besleme linki
followers: Takipçiler followers: Takipçiler
follows: Takip edilen follows: Takip edilen
@ -58,6 +60,10 @@ tr:
profile_url: Profil linki profile_url: Profil linki
public: Herkese açık public: Herkese açık
push_subscription_expires: PuSH aboneliği dolumu push_subscription_expires: PuSH aboneliği dolumu
resend_confirmation:
already_confirmed: Bu kullanıcı zaten onaylandı
send: Doğrulama epostasını yeniden gönder
success: Onay e-postası başarıyla gönderildi!
reset_password: Parolayı değiştir reset_password: Parolayı değiştir
salmon_url: Salmon Linki salmon_url: Salmon Linki
show: show:

View File

@ -61,6 +61,7 @@ zh-CN:
by_domain: 域名 by_domain: 域名
confirm: 确认 confirm: 确认
confirmed: 已确认 confirmed: 已确认
confirming: 确认
demote: 降任 demote: 降任
disable: 停用 disable: 停用
disable_two_factor_authentication: 停用双重认证 disable_two_factor_authentication: 停用双重认证
@ -69,6 +70,7 @@ zh-CN:
domain: 域名 domain: 域名
edit: 编辑 edit: 编辑
email: 电子邮件地址 email: 电子邮件地址
email_status: 电子邮件状态
enable: 启用 enable: 启用
enabled: 已启用 enabled: 已启用
feed_url: 订阅 URL feed_url: 订阅 URL
@ -106,6 +108,10 @@ zh-CN:
public: 公开页面 public: 公开页面
push_subscription_expires: PuSH 订阅过期时间 push_subscription_expires: PuSH 订阅过期时间
redownload: 刷新头像 redownload: 刷新头像
resend_confirmation:
already_confirmed: 该用户已被确认
send: 重发确认邮件
success: 确认电子邮件成功发送!
reset: 重置 reset: 重置
reset_password: 重置密码 reset_password: 重置密码
resubscribe: 重新订阅 resubscribe: 重新订阅

View File

@ -70,6 +70,7 @@ zh-HK:
title: 改變 %{username} 的電郵 title: 改變 %{username} 的電郵
confirm: 確定 confirm: 確定
confirmed: 已確定 confirmed: 已確定
confirming: 確定
demote: 降任 demote: 降任
disable: 停用 disable: 停用
disable_two_factor_authentication: 停用雙重認證 disable_two_factor_authentication: 停用雙重認證
@ -78,6 +79,7 @@ zh-HK:
domain: 域名 domain: 域名
edit: 編輯 edit: 編輯
email: 電郵地址 email: 電郵地址
email_status: 电子邮件状态
enable: 啟用 enable: 啟用
enabled: 已啟用 enabled: 已啟用
feed_url: Feed URL feed_url: Feed URL
@ -116,6 +118,10 @@ zh-HK:
push_subscription_expires: PuSH 訂閱過期 push_subscription_expires: PuSH 訂閱過期
redownload: 更新頭像 redownload: 更新頭像
remove_avatar: 取消頭像 remove_avatar: 取消頭像
resend_confirmation:
already_confirmed: 该用户已被确认
send: 重发确认邮件
success: 确认电子邮件成功发送!
reset: 重設 reset: 重設
reset_password: 重設密碼 reset_password: 重設密碼
resubscribe: 重新訂閱 resubscribe: 重新訂閱

View File

@ -155,8 +155,13 @@ Rails.application.routes.draw do
resource :reset, only: [:create] resource :reset, only: [:create]
resource :silence, only: [:create, :destroy] resource :silence, only: [:create, :destroy]
resource :suspension, only: [:create, :destroy] resource :suspension, only: [:create, :destroy]
resource :confirmation, only: [:create] resources :statuses, only: [:index, :create, :update, :destroy]
resources :statuses, only: [:index, :create]
resource :confirmation, only: [:create] do
collection do
post :resend
end
end
resource :role do resource :role do
member do member do

View File

@ -30,4 +30,35 @@ RSpec.describe Admin::ConfirmationsController, type: :controller do
expect(response).to have_http_status(404) expect(response).to have_http_status(404)
end end
end end
describe 'POST #resernd' do
subject { post :resend, params: { account_id: account.id } }
let(:account) { Fabricate(:account) }
let!(:user) { Fabricate(:user, confirmed_at: confirmed_at, account: account) }
before do
allow(UserMailer).to receive(:confirmation_instructions) { double(:email, deliver_later: nil) }
end
context 'when email is not confirmed' do
let(:confirmed_at) { nil }
it 'resends confirmation mail' do
expect(subject).to redirect_to admin_accounts_path
expect(flash[:notice]).to eq I18n.t('admin.accounts.resend_confirmation.success')
expect(UserMailer).to have_received(:confirmation_instructions).once
end
end
context 'when email is confirmed' do
let(:confirmed_at) { Time.zone.now }
it 'does not resend confirmation mail' do
expect(subject).to redirect_to admin_accounts_path
expect(flash[:error]).to eq I18n.t('admin.accounts.resend_confirmation.already_confirmed')
expect(UserMailer).not_to have_received(:confirmation_instructions)
end
end
end
end end