From 6c413d3b0c4f9343fe35dbd6ad65b87dca4b4831 Mon Sep 17 00:00:00 2001 From: jessib Date: Wed, 3 Jul 2013 14:07:59 -0700 Subject: Accounts can be enabled or not. Admins can edit this property. --- users/config/locales/en.yml | 2 ++ users/config/routes.rb | 2 ++ 2 files changed, 4 insertions(+) (limited to 'users/config') diff --git a/users/config/locales/en.yml b/users/config/locales/en.yml index 32d183b..c527e56 100644 --- a/users/config/locales/en.yml +++ b/users/config/locales/en.yml @@ -25,6 +25,8 @@ en: associated_email: "The associated email address is" cookie_disabled_warning: "You have cookies disabled. You will not be able to login until you enable cookies." js_required: "We are sorry, but this doesn't work without javascript enabled. This is for security reasons." + enable_description: "This will restore the account to full functionality" + deactivate_description: "This will temporarily deactivate some account functionality." #todo detail exact functionality. can receive email but not send or renew client certificate? activemodel: models: diff --git a/users/config/routes.rb b/users/config/routes.rb index 9a9a40e..cd510a8 100644 --- a/users/config/routes.rb +++ b/users/config/routes.rb @@ -15,6 +15,8 @@ Rails.application.routes.draw do get "signup" => "users#new", :as => "signup" resources :users do resources :email_aliases, :only => [:destroy], :id => /.*/ + post 'deactivate', on: :member + post 'enable', on: :member end get "/.well-known/host-meta" => 'webfinger#host_meta' -- cgit v1.2.3 From a40a83cb07d9aba8915cd2c4a25aa76e0cf6760e Mon Sep 17 00:00:00 2001 From: jessib Date: Tue, 9 Jul 2013 10:35:14 -0700 Subject: Cleanup to show enable/deactivate account functionality in new UI. --- users/config/locales/en.yml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'users/config') diff --git a/users/config/locales/en.yml b/users/config/locales/en.yml index f4d3171..1aa7005 100644 --- a/users/config/locales/en.yml +++ b/users/config/locales/en.yml @@ -32,7 +32,9 @@ en: search: "Search" cookie_disabled_warning: "You have cookies disabled. You will not be able to login until you enable cookies." js_required: "We are sorry, but this doesn't work without javascript enabled. This is for security reasons." + enable_account: "Enable the account %{username}" enable_description: "This will restore the account to full functionality" + deactivate_account: "Deactivate the account %{username}" deactivate_description: "This will temporarily deactivate some account functionality." #todo detail exact functionality. can receive email but not send or renew client certificate? -- cgit v1.2.3