aha_builder_core 1.0.8 → 1.0.9

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: 490bd06e81ec0d130ff09c9878fac8c31e76fba35063579ae919caf5a743d55a
4
- data.tar.gz: c7217cf98151dd3b5a66a757c11cb0f1bfa40401c0a98bbeea1ce9d27a443dce
3
+ metadata.gz: 59c37cc872aac2e85b4306ec7f5e737283471d3469ad9718d9c0d838ef9751fd
4
+ data.tar.gz: 0d39ece5b2491709ca26ef2959ea227b6ff1d16292387adfcea3ec802cf45011
5
5
  SHA512:
6
- metadata.gz: 3fe25c0112738e2e7165694bdabc250670d52e031831595f4060bb6de96aac866887be3de7fbb44fa934eb1433360d62ba2a536ca60edc13cecae2bd1f27cf12
7
- data.tar.gz: ac4d3246bd7ad318ae24780a5b880ee1bb3ab36441fe49ade5133a0a82ab4d12eed0cae9742a43a7263ad62e7ec71aaca77b48befb90a21180452ac6620a5775
6
+ metadata.gz: ec8d2a196f8f8c82c5f0ca833d68f1ed1b16fbf3da9954d9c0bf1e81c4033f2516712477f265a0d42283aa4e263bc31809963d1624a0c965753081c4a0221bfe
7
+ data.tar.gz: fb82aff0a32374f547d081a70acf20ef993a679e08b66186456c0e8910f918a1bf20a2ee8aa58e7e842e8ca03a6021af8553bcda94cf56851115049278d029dc
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Aha
4
4
  module Auth
5
- VERSION = "1.0.8"
5
+ VERSION = "1.0.9"
6
6
  end
7
7
  end
@@ -37,8 +37,8 @@ module AhaBuilderCore
37
37
 
38
38
  def add_routes
39
39
  route <<~RUBY
40
- get "login", to: "sessions#new", as: :new_session
41
- get "callback", to: "sessions#callback", as: :session_callback
40
+ get "login", to: "sessions#new", as: :login
41
+ get "callback", to: "sessions#callback", as: :login_callback
42
42
  delete "logout", to: "sessions#logout", as: :logout
43
43
  RUBY
44
44
  end
@@ -30,11 +30,11 @@ class SessionsController < ApplicationController
30
30
  state = JSON.parse(params[:state]) rescue {}
31
31
  redirect_to state["return_to"] || root_path
32
32
  else
33
- redirect_to new_session_path, alert: "Authentication failed. Please try again."
33
+ redirect_to login_path, alert: "Authentication failed. Please try again."
34
34
  end
35
35
  rescue Aha::Auth::ApiError => e
36
36
  Rails.logger.error "Authentication failed: #{e.message}"
37
- redirect_to new_session_path, alert: "Authentication failed. Please try again."
37
+ redirect_to login_path, alert: "Authentication failed. Please try again."
38
38
  end
39
39
 
40
40
  def logout
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aha_builder_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aha! Labs Inc.