login-control 0.0.9 → 0.0.10
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/README.md +12 -4
- 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: 8e5fe55ef77a1e22cb8412309533eb689fad1eb6974a4bc655c90ecbdd9537f8
|
4
|
+
data.tar.gz: 2ac316f6a3332f45e795b2e5fb70cb842a7a30b98685daa7c009e01dbf09f07c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1dc3fed49863c7173a6333c8a44e8775214596af7d5f2807c97514561c168ef1dc053c52549df4dc0afc247954ae86ced7af133131ce1eeb9921e7ca29e782f
|
7
|
+
data.tar.gz: c504a82898c66b3658c89469797633f50b050a52699a6afa80bf7ff4cfc8038fc0f1ca7a7ef8ab385b59fe8b1fd89f931e4c83f154130d20c0a7b411a51179b2
|
data/README.md
CHANGED
@@ -16,7 +16,7 @@ On localhost captcha is never required.
|
|
16
16
|
|
17
17
|
## Installation
|
18
18
|
|
19
|
-
`gem 'request-control'
|
19
|
+
`gem 'request-control'`
|
20
20
|
|
21
21
|
run
|
22
22
|
```
|
@@ -25,9 +25,17 @@ $ rails g model login_control session_id:string login_name:string scope:string s
|
|
25
25
|
$ rails db:migrate
|
26
26
|
```
|
27
27
|
|
28
|
-
|
28
|
+
initializer
|
29
|
+
```
|
30
|
+
require 'login_control_module'
|
31
|
+
require 'login_control_view_helper'
|
32
|
+
```
|
29
33
|
|
30
|
-
|
34
|
+
ApplicationHelper
|
35
|
+
|
36
|
+
`include LoginControlViewHelper`
|
37
|
+
|
38
|
+
Login Form
|
31
39
|
|
32
40
|
```
|
33
41
|
- if captcha_tag?
|
@@ -39,7 +47,7 @@ Controller example for subclassed devise controller
|
|
39
47
|
```
|
40
48
|
class SessionsController < Devise::SessionsController
|
41
49
|
|
42
|
-
include
|
50
|
+
include LoginControlModule
|
43
51
|
|
44
52
|
def create
|
45
53
|
notice_request_attempt
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: login-control
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Sedlmair
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Based on Login Attempts check if captcha is necessary. It stores a permanent
|
14
14
|
cookie and uses a table for tracking login requests.
|