nodebb-plugin-sso-facebook 4.0.5 → 4.1.0

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.
package/library.js CHANGED
@@ -30,6 +30,7 @@
30
30
 
31
31
  hostHelpers.setupAdminPageRoute(params.router, '/admin/plugins/sso-facebook', function (req, res) {
32
32
  res.render('admin/plugins/sso-facebook', {
33
+ title: constants.name,
33
34
  baseUrl: nconf.get('url'),
34
35
  });
35
36
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-sso-facebook",
3
- "version": "4.0.5",
3
+ "version": "4.1.0",
4
4
  "description": "NodeBB Facebook SSO",
5
5
  "main": "library.js",
6
6
  "repository": {
@@ -29,6 +29,6 @@
29
29
  "passport-facebook": "~1.0.2"
30
30
  },
31
31
  "nbbpm": {
32
- "compatibility": "^3.0.0"
32
+ "compatibility": "^3.2.0"
33
33
  }
34
34
  }
@@ -1,4 +1,4 @@
1
- define('admin/plugins/sso-facebook', ['settings'], function(Settings) {
1
+ define('admin/plugins/sso-facebook', ['settings', 'alerts'], function(Settings, alerts) {
2
2
  'use strict';
3
3
  /* globals $, app, socket, require */
4
4
 
@@ -9,7 +9,7 @@ define('admin/plugins/sso-facebook', ['settings'], function(Settings) {
9
9
 
10
10
  $('#save').on('click', function() {
11
11
  Settings.save('sso-facebook', $('.sso-facebook-settings'), function() {
12
- app.alert({
12
+ alerts.alert({
13
13
  type: 'success',
14
14
  alert_id: 'sso-facebook-saved',
15
15
  title: 'Settings Saved',
@@ -1,54 +1,51 @@
1
- <div class="row">
2
- <div class="col-12">
3
- <div class="card">
4
- <div class="card-header">Facebook Social Authentication</div>
5
- <div class="card-body">
6
- <p>
7
- Create a <strong>Facebook Application</strong> via the
8
- <a href="https://developers.facebook.com/apps/">Facebook Developers Page</a> and
9
- then paste your application details here.
10
- </p>
11
- <ul>
12
- <li>
13
- You will need to enable <strong>"Client OAuth Login"</strong> and <strong>"Web OAuth Login"</strong>
14
- from the "Facebook Login" product
15
- </li>
16
- <li>
17
- You will need to paste <code>{baseUrl}/auth/facebook/callback</code> into the
18
- <strong>"Valid OAuth Redirect URIs"</strong> field.
19
- </li>
20
- </ul>
1
+ <div class="acp-page-container">
2
+ <!-- IMPORT admin/partials/settings/header.tpl -->
3
+
4
+ <div class="row m-0">
5
+ <div id="spy-container" class="col-12 px-0 mb-4" tabindex="0">
6
+ <p>
7
+ Create a <strong>Facebook Application</strong> via the
8
+ <a href="https://developers.facebook.com/apps/">Facebook Developers Page</a> and
9
+ then paste your application details here.
10
+ </p>
11
+ <ul>
12
+ <li>
13
+ You will need to enable <strong>"Client OAuth Login"</strong> and <strong>"Web OAuth Login"</strong>
14
+ from the "Facebook Login" product
15
+ </li>
16
+ <li>
17
+ You will need to paste <code>{baseUrl}/auth/facebook/callback</code> into the
18
+ <strong>"Valid OAuth Redirect URIs"</strong> field.
19
+ </li>
20
+ </ul>
21
+ </p>
22
+ <form role="form" class="sso-facebook-settings">
23
+ <div class="mb-3">
24
+ <label for="app_id">Application ID</label>
25
+ <input type="text" id="app_id" name="app_id" title="Application ID" class="form-control" placeholder="Application ID"><br />
26
+ </div>
27
+ <div class="mb-3">
28
+ <label for="secret">Secret</label>
29
+ <input type="text" id="secret" name="secret" title="Secret" class="form-control" placeholder="Secret">
30
+ </div>
31
+ <div class="form-check">
32
+ <input type="checkbox" class="form-check-input" id="autoconfirm" name="autoconfirm" />
33
+ <label for="autoconfirm" class="form-check-label">
34
+ Skip email verification for people who register using SSO?
35
+ </label>
36
+ </div>
37
+ <div class="form-check">
38
+ <input type="checkbox" class="form-check-input" id="disableRegistration" name="disableRegistration" />
39
+ <label for="disableRegistration" class="form-check-label">
40
+ Disable user registration via SSO
41
+ </label>
42
+ </div>
43
+ <p class="form-text">
44
+ Restricting registration means that only registered users can associate their account with this SSO strategy.
45
+ This restriction is useful if you have users bypassing registration controls by using social media accounts, or
46
+ if you wish to use the NodeBB registration queue.
21
47
  </p>
22
- <form role="form" class="sso-facebook-settings">
23
- <div class="mb-3">
24
- <label for="app_id">Application ID</label>
25
- <input type="text" id="app_id" name="app_id" title="Application ID" class="form-control" placeholder="Application ID"><br />
26
- </div>
27
- <div class="mb-3">
28
- <label for="secret">Secret</label>
29
- <input type="text" id="secret" name="secret" title="Secret" class="form-control" placeholder="Secret">
30
- </div>
31
- <div class="form-check">
32
- <input type="checkbox" class="form-check-input" id="autoconfirm" name="autoconfirm" />
33
- <label for="autoconfirm" class="form-check-label">
34
- Skip email verification for people who register using SSO?
35
- </label>
36
- </div>
37
- <div class="form-check">
38
- <input type="checkbox" class="form-check-input" id="disableRegistration" name="disableRegistration" />
39
- <label for="disableRegistration" class="form-check-label">
40
- Disable user registration via SSO
41
- </label>
42
- </div>
43
- <p class="form-text">
44
- Restricting registration means that only registered users can associate their account with this SSO strategy.
45
- This restriction is useful if you have users bypassing registration controls by using social media accounts, or
46
- if you wish to use the NodeBB registration queue.
47
- </p>
48
- </form>
49
- </div>
48
+ </form>
50
49
  </div>
51
50
  </div>
52
51
  </div>
53
-
54
- <!-- IMPORT admin/partials/save_button.tpl -->