rodauth-select-account 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9496ecf9a3647c6371feef06b8cb81403ff9c076012650f740778f246b66180e
4
- data.tar.gz: aeb014bfa0376f53fc34bc4fe7870fc4ac23b080da8b8ce11457c3ca43404765
3
+ metadata.gz: 96167bb6a6cb514dfdb4b0eb19cd1a231f9938326a2f199ebdc458202d2c91c4
4
+ data.tar.gz: a8b6e0090b49d59161c66537bda1cf4dac1cbda19692a20c3254535c1257bf4a
5
5
  SHA512:
6
- metadata.gz: ea5fb45c7bf98c22827756fc9c5b0f684f7a76be9843a1f0a46d0d4088f2f4957161b562b1c4c1fb91ff952e4783f6cde6cdccd456401fb51281a25486e9d317
7
- data.tar.gz: 66e79a5a50fc9df83aa63228b8079df3cbee160e56f23c05e84efbb2201c9c1400c48e7eabd9c788d602946aa15e3aa8f215c6519601a9ceb6cfcf9d8c8e2b7b
6
+ metadata.gz: 63602f5524af960c0ccfab9a8632d34c1a2678d046dd538381cdbe6d0feb03e16a340ab1f4d8dc3d31a85e2934bd850a7830d58ba04aad9af4223648d194af06
7
+ data.tar.gz: 8809b6233fb99fda935134f0115488f7cc89a443f00e8fc8dd3eea3465f1f970a451b30fea6ef277ed961618767854603fa6e41ee9bdbd69691e1374146e4d62
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rodauth
4
4
  module SelectAccount
5
- VERSION = "0.0.1"
5
+ VERSION = "0.0.2"
6
6
  end
7
7
  end
@@ -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,3 @@
1
+ #{rodauth.login_form_header}
2
+ #{rodauth.render('add-account-form')}
3
+ #{rodauth.login_form_footer}
@@ -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.1
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: