shopapp 0.2.65 → 0.2.66
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/controllers/auth_controller.rb +6 -0
- data/app/views/shopapp/_shopapp3.html.haml +2 -0
- data/lib/shopapp/routes.rb +1 -0
- data/shopapp.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ab3510550961182efe5202fab0dec53daed323cda2bc2d78f68741c75c299c4
|
4
|
+
data.tar.gz: 5395ac541e8df3a1ad2a477a3bf8722a015fe24641b7228c980829b8ae018f37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f1742f0a1befdd9a050c00d704dab6d923df515bb0c3b79457e6e4f9d525fefe03d527cc1119bb5debae9a925eba20d0da8bccf92de6fe6af8f921f962b05eb
|
7
|
+
data.tar.gz: b3593ab5587b4496e89115303afab1f3e805b78653ef2512e1d10294c281d8c2fd2ce33b5a2f8357f216d1e85fb6eea965dd289072e35a87eb28ca50d7c321e8
|
data/README.md
CHANGED
@@ -93,4 +93,4 @@ shopapp to support i18n, add two methods to your ApplicationController:
|
|
93
93
|
|
94
94
|
To build new version of this gem, change the version in shopapp.gemspec and run:
|
95
95
|
|
96
|
-
git push; gem build shopapp.gemspec ; gem push shopapp-0.2.
|
96
|
+
git push; gem build shopapp.gemspec ; gem push shopapp-0.2.66.gem; gem install shopapp
|
@@ -44,4 +44,10 @@ class AuthController < ActionController::Base
|
|
44
44
|
signouttoken = session_cookie
|
45
45
|
redirect_to "#{Rails.configuration.settings['authlift_url']}users/change_languagex/#{new_language_code}?change_language_token=#{signouttoken}&return_to=#{request.base_url}"
|
46
46
|
end
|
47
|
+
|
48
|
+
def change_password
|
49
|
+
authenticate_user!
|
50
|
+
return if current_user.blank?
|
51
|
+
redirect_to "#{Rails.configuration.settings['authlift_url']}users/change_password"
|
52
|
+
end
|
47
53
|
end
|
@@ -39,6 +39,8 @@
|
|
39
39
|
= image_tag "https://media.shoplift.fi/company_logos/#{c['logo_code']}_company_logo_24.png", style: "height: 16; width: 32px;"
|
40
40
|
= c['name']
|
41
41
|
.dropdown-divider
|
42
|
+
= link_to(change_password_path, method: :get, :class => 'dropdown-item') do
|
43
|
+
Change password
|
42
44
|
= link_to(logout_path, method: :delete, :class => 'dropdown-item') do
|
43
45
|
Logout
|
44
46
|
= yield
|
data/lib/shopapp/routes.rb
CHANGED
@@ -4,6 +4,7 @@ class ActionDispatch::Routing::Mapper
|
|
4
4
|
post 'auth/change_company/:new_company_code', to: 'auth#change_company', as: 'change_company'
|
5
5
|
post 'auth/change_language/:new_language_code', to: 'auth#change_language', as: 'change_language'
|
6
6
|
delete 'auth', to: 'auth#destroy', as: 'logout'
|
7
|
+
get 'change_password', to: 'auth#change_password', as: 'change_password'
|
7
8
|
|
8
9
|
get 'login', to: 'shopapp_login#welcome', as: 'login_message'
|
9
10
|
end
|
data/shopapp.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'shopapp'
|
3
|
-
s.version = '0.2.
|
4
|
-
s.date = '2019-09-
|
3
|
+
s.version = '0.2.66'
|
4
|
+
s.date = '2019-09-26'
|
5
5
|
s.summary = 'Do a shoplift.'
|
6
6
|
s.description = 'Ha! Art thou Bedlam? Dost thou thirst base Trojan, to have me fold up Parca\'s fatal web? Hence!\
|
7
7
|
I am qualmish at the smell of leek.'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shopapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.66
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zeljko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|