tkh_authentication 0.9.13 → 0.9.14
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92bf53cc857cf087f612c04ab01f4a88a84fedc5
|
4
|
+
data.tar.gz: ec91504c2d50a1eca00d2ab8873c4d602384eebb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a58df08ec3a7539cbfc4139ffd502df3d4237156c6498a3230ae5d822dd25108ff0839a4e673847600967801b2019b92b554ba3c35f1801a3a9dcf9b15527aab
|
7
|
+
data.tar.gz: 6790ee3f637e68694703a432a00192215cb5c241563e7db5cd105a9887ebf9682cab3ec81e3a73a240ebda2a09550069d6f66b8f9e4f322cfe0bae127580f87c
|
data/CHANGELOG.md
CHANGED
@@ -47,14 +47,14 @@ class UsersController < ApplicationController
|
|
47
47
|
user = User.find(params[:id])
|
48
48
|
user.admin = true
|
49
49
|
user.save
|
50
|
-
redirect_to
|
50
|
+
redirect_to members_path, notice: t('authentication.admin_enabled_confirmation')
|
51
51
|
end
|
52
52
|
|
53
53
|
def remove_admin
|
54
54
|
user = User.find(params[:id])
|
55
55
|
user.admin = false
|
56
56
|
user.save
|
57
|
-
redirect_to
|
57
|
+
redirect_to members_path, notice: t('authentication.admin_disabled_confirmation')
|
58
58
|
end
|
59
59
|
|
60
60
|
private
|
@@ -3,7 +3,8 @@
|
|
3
3
|
<li class='dropdown'>
|
4
4
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-user"></span> <%= current_user.email %> <b class="caret"></b></a>
|
5
5
|
<ul class="dropdown-menu">
|
6
|
-
|
6
|
+
<%= content_tag :li, link_to("<span class=\"glyphicon glyphicon-user\"></span> profile".html_safe, profile_path) %>
|
7
|
+
<%= content_tag :li, link_to("<span class=\"glyphicon glyphicon-off\"></span> #{t('logout').downcase}".html_safe, logout_path) %>
|
7
8
|
</ul>
|
8
9
|
</li>
|
9
10
|
</ul>
|
data/lib/tkh_authentication.rb
CHANGED
@@ -4,6 +4,7 @@ require 'simple_form'
|
|
4
4
|
require 'stringex'
|
5
5
|
require 'tkh_authentication/tkh_authentication_action_controller_extension'
|
6
6
|
require 'tkh_authentication/tkh_authentication_helper'
|
7
|
+
# require 'tkh_mailing_list' # debugging this
|
7
8
|
|
8
9
|
module TkhAuthentication
|
9
10
|
class Engine < ::Rails::Engine
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tkh_authentication
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Swami Atma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|