jinda 0.7.0.1 → 0.7.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/views/jinda/index.html.haml +1 -1
- data/config/routes.rb +1 -1
- data/lib/generators/jinda/templates/app/controllers/jinda_org/sessions_controller.rb +4 -3
- data/lib/generators/jinda/templates/app/views/sessions/new.html.erb +3 -0
- data/lib/jinda/version.rb +1 -1
- 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: 208dd497ab7ce9c92f2c9a5f2bb026f54910a3c50fc03524d293786612bf6adb
|
4
|
+
data.tar.gz: 99ff66052567c2ee43f7958b37397898c468b853f74aa875f581728eec03fce7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb56e25fc2e5b5a9bad7965cc1770f99d916c0d268c41fc62f4199f56524f79f2ef3a676401f276baa45b4269d57fe34d3663f7196a6985abcbf6edbe94229f9
|
7
|
+
data.tar.gz: 182db553efc2c9c5a214b954e64c139eef9eec6ec2c6f53b46c742e1d36414beace3042c29037eed9045e879caa86acfca4681e7c3f41e067834bdbc3f88d5c6
|
@@ -33,7 +33,7 @@
|
|
33
33
|
%div.inner
|
34
34
|
%b Installation
|
35
35
|
%ul
|
36
|
-
%li add gem 'jinda', '0.7.0.
|
36
|
+
%li add gem 'jinda', '0.7.0.2' to Gemfile then $ bundle
|
37
37
|
%li rails generate jinda:install, then bundle
|
38
38
|
%li rails generate jinda:config
|
39
39
|
%li rails jinda:seed, will create initial user:password admin:secret
|
data/config/routes.rb
CHANGED
@@ -12,7 +12,7 @@ Rails.application.routes.draw do
|
|
12
12
|
# end jinda method routes
|
13
13
|
post '/auth/:provider/callback' => 'sessions#create'
|
14
14
|
get '/auth/:provider/callback' => 'sessions#create'
|
15
|
-
get '/auth/failure' => 'sessions#
|
15
|
+
get '/auth/failure' => 'sessions#failure'
|
16
16
|
get '/logout' => 'sessions#destroy', :as => 'logout'
|
17
17
|
get '/articles/my' => 'articles#my'
|
18
18
|
get '/articles/my/destroy' => 'articles#destroy'
|
@@ -5,6 +5,7 @@ class SessionsController < ApplicationController
|
|
5
5
|
end
|
6
6
|
|
7
7
|
def failure
|
8
|
+
# redirect_to login_path, alert: "Authentication failed, please try again."
|
8
9
|
redirect_to login_path, alert: "Authentication failed, please try again."
|
9
10
|
end
|
10
11
|
|
@@ -21,8 +22,8 @@ class SessionsController < ApplicationController
|
|
21
22
|
cookies[:auth_token] = user.auth_token
|
22
23
|
end
|
23
24
|
# refresh_to root_path, :ma_notice => "Logged in" # Called by jinda_conroller
|
24
|
-
|
25
|
-
redirect_to articles_my_path
|
25
|
+
redirect_to root_path
|
26
|
+
# redirect_to articles_my_path
|
26
27
|
|
27
28
|
rescue
|
28
29
|
redirect_to root_path, :alert=> "Authentication failed, please try again."
|
@@ -38,6 +39,6 @@ class SessionsController < ApplicationController
|
|
38
39
|
|
39
40
|
def failure
|
40
41
|
ma_log "Authentication failed, please try again."
|
41
|
-
redirect_to
|
42
|
+
redirect_to new_session_path, :alert=> "Authentication failed, please try again."
|
42
43
|
end
|
43
44
|
end
|
@@ -4,6 +4,9 @@
|
|
4
4
|
|
5
5
|
<%= form_tag "/auth/identity/callback", {'data-ajax'=>'false'} do %>
|
6
6
|
<h1 class="h3 mb-3 font-weight-normal" style="text-align: center"> Sign in</h1>
|
7
|
+
<div class="label-warning">
|
8
|
+
<%= flash[:alert] %>
|
9
|
+
</div>
|
7
10
|
<div class="form-control" data-role="fieldcontain">
|
8
11
|
<%= label_tag :auth_key, "User name" %>
|
9
12
|
<%= text_field_tag :auth_key %>
|
data/lib/jinda/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jinda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.0.
|
4
|
+
version: 0.7.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Prateep Kul
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-01-
|
12
|
+
date: 2021-01-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|