rodauth-select-account 0.0.1 → 0.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/lib/rodauth/select-account/version.rb +1 -1
- data/templates/add-account-form.str +6 -0
- data/templates/add-account.str +3 -0
- data/templates/select-account.str +17 -0
- metadata +4 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 96167bb6a6cb514dfdb4b0eb19cd1a231f9938326a2f199ebdc458202d2c91c4
|
|
4
|
+
data.tar.gz: a8b6e0090b49d59161c66537bda1cf4dac1cbda19692a20c3254535c1257bf4a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 63602f5524af960c0ccfab9a8632d34c1a2678d046dd538381cdbe6d0feb03e16a340ab1f4d8dc3d31a85e2934bd850a7830d58ba04aad9af4223648d194af06
|
|
7
|
+
data.tar.gz: 8809b6233fb99fda935134f0115488f7cc89a443f00e8fc8dd3eea3465f1f970a451b30fea6ef277ed961618767854603fa6e41ee9bdbd69691e1374146e4d62
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<form method="post" class="rodauth" role="form" id="add-account-form">
|
|
2
|
+
#{rodauth.csrf_tag}
|
|
3
|
+
#{rodauth.skip_login_field_on_login? ? rodauth.render('login-display') : rodauth.render('login-field')}
|
|
4
|
+
#{rodauth.render('password-field') unless rodauth.skip_password_field_on_login?}
|
|
5
|
+
#{rodauth.button(rodauth.add_account_button)}
|
|
6
|
+
</form>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<div class="list-group">
|
|
2
|
+
#{
|
|
3
|
+
rodauth.accounts_in_session.map do |account|
|
|
4
|
+
next if account[rodauth.account_id_column] == rodauth.session_value
|
|
5
|
+
|
|
6
|
+
<<-OUT
|
|
7
|
+
<form method="post" class="rodauth" role="form" id="select-account-form">
|
|
8
|
+
#{rodauth.csrf_tag}
|
|
9
|
+
<input type="hidden" name="#{rodauth.login_param}" value="#{account[rodauth.login_column]}" />
|
|
10
|
+
<button type="submit" class="list-group-item list-group-item-action">
|
|
11
|
+
#{account[rodauth.login_column]}
|
|
12
|
+
</button>
|
|
13
|
+
</form>
|
|
14
|
+
OUT
|
|
15
|
+
end.join
|
|
16
|
+
}
|
|
17
|
+
</div>
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rodauth-select-account
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tiago Cardoso
|
|
@@ -26,6 +26,9 @@ files:
|
|
|
26
26
|
- lib/rodauth/features/select_account.rb
|
|
27
27
|
- lib/rodauth/select-account.rb
|
|
28
28
|
- lib/rodauth/select-account/version.rb
|
|
29
|
+
- templates/add-account-form.str
|
|
30
|
+
- templates/add-account.str
|
|
31
|
+
- templates/select-account.str
|
|
29
32
|
homepage: https://gitlab.com/honeyryderchuck/rodauth-select-account
|
|
30
33
|
licenses: []
|
|
31
34
|
metadata:
|