plutonium 0.15.12 → 0.15.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/pu/rodauth/concerns/configuration.rb +1 -0
- data/lib/plutonium/version.rb +1 -1
- data/lib/plutonium.rb +2 -0
- data/lib/rodauth/features/case_insensitive_login.rb +15 -0
- data/lib/rodauth/loader.rb +1 -0
- data/package-lock.json +2 -2
- data/package.json +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0577a5116150fb7b8c44f137d0b1b1067def5269a6118ef3be316493bc14b2ce
|
4
|
+
data.tar.gz: 9ae08c63ff07ec729b9b218b442be233294de59d9a84c2d82b485ba384b15e10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b3ba0a9576dd68001b242af8a7e142349d9c2fb333c5ebe923ba626ba458dca35441f9e6840f68d8d4e4bfba95261ae69c6e7f8b0ac2b290aaeeb19f5630784
|
7
|
+
data.tar.gz: ad6a8504cecf29158667dc1acf5ebe83af0da863baf7ad524efe3e2e70c74153d214482f31a6ce860d5e2384f9191def0d95ce3a13dd6c42298a6b317e9f58a3
|
data/lib/plutonium/version.rb
CHANGED
data/lib/plutonium.rb
CHANGED
@@ -10,6 +10,7 @@ require "phlexi-form"
|
|
10
10
|
require "phlexi-table"
|
11
11
|
|
12
12
|
require_relative "plutonium/configuration"
|
13
|
+
require_relative "rodauth/loader"
|
13
14
|
|
14
15
|
# Plutonium module
|
15
16
|
#
|
@@ -25,6 +26,7 @@ module Plutonium
|
|
25
26
|
Loader = Zeitwerk::Loader.for_gem(warn_on_extra_files: false).tap do |loader|
|
26
27
|
loader.ignore("#{__dir__}/generators")
|
27
28
|
loader.ignore("#{__dir__}/plutonium/railtie.rb")
|
29
|
+
loader.ignore("#{__dir__}/rodauth")
|
28
30
|
loader.inflector.inflect("ui" => "UI")
|
29
31
|
loader.inflector.inflect("workflow_dsl" => "WorkflowDSL")
|
30
32
|
loader.enable_reloading if defined?(Rails.env) && Rails.env.development?
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require "rodauth"
|
2
|
+
|
3
|
+
module Rodauth
|
4
|
+
Feature.define(:case_insensitive_login, :CaseInsensitiveLogin) do
|
5
|
+
def param(key)
|
6
|
+
value = super
|
7
|
+
value&.downcase! if [login_param, login_confirm_param].include?(key)
|
8
|
+
value
|
9
|
+
end
|
10
|
+
|
11
|
+
def account_from_login(login)
|
12
|
+
super(login&.downcase)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require_relative "features/case_insensitive_login"
|
data/package-lock.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@radioactive-labs/plutonium",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.7",
|
4
4
|
"lockfileVersion": 3,
|
5
5
|
"requires": true,
|
6
6
|
"packages": {
|
7
7
|
"": {
|
8
8
|
"name": "@radioactive-labs/plutonium",
|
9
|
-
"version": "0.1.
|
9
|
+
"version": "0.1.7",
|
10
10
|
"license": "MIT",
|
11
11
|
"dependencies": {
|
12
12
|
"@hotwired/stimulus": "^3.2.2",
|
data/package.json
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plutonium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Froelich
|
@@ -1401,6 +1401,8 @@ files:
|
|
1401
1401
|
- lib/plutonium/ui/table/resource.rb
|
1402
1402
|
- lib/plutonium/ui/table/theme.rb
|
1403
1403
|
- lib/plutonium/version.rb
|
1404
|
+
- lib/rodauth/features/case_insensitive_login.rb
|
1405
|
+
- lib/rodauth/loader.rb
|
1404
1406
|
- lib/tasks/create_rodauth_admin.rake
|
1405
1407
|
- package-lock.json
|
1406
1408
|
- package.json
|