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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ca87efff8bd66514eebb024644656648fd93a4b945a22dbb6659df96026d45e
4
- data.tar.gz: 77fdbd475b8c9196e64f097c393519d6345f97822d0f3fde0b9e6bab8bdc12aa
3
+ metadata.gz: 208dd497ab7ce9c92f2c9a5f2bb026f54910a3c50fc03524d293786612bf6adb
4
+ data.tar.gz: 99ff66052567c2ee43f7958b37397898c468b853f74aa875f581728eec03fce7
5
5
  SHA512:
6
- metadata.gz: 5ae63a36708f4831d99c564b0ffef7f8f24c48f3753f2ecb8036a988f2720791aa7b5796c53bab21d3c4b2f32a5364d5cabf4a0b91ca551770974dcc796690c9
7
- data.tar.gz: a868c134eec359d38bc5f8e7bb5400b20e1e53b40dac9dc2870cbe7b08e500f15c83cded720e8caab516025d450be80a3c48b693872a4f9eb51c3133eb48a352
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.1' to Gemfile then $ bundle
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
@@ -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#destroy'
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
- # redirect_to root_path
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 root_path, :alert=> "Authentication failed, please try again."
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 %>
@@ -1,3 +1,3 @@
1
1
  module Jinda
2
- VERSION = "0.7.0.1"
2
+ VERSION = "0.7.0.2"
3
3
  end
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.1
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-06 00:00:00.000000000 Z
12
+ date: 2021-01-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake