Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 81 lines (79 sloc) 3.349 kb
d629faf Add reCaptcha support from jnbdz's fork. Add support for disabling reCap...
Mikito Takada authored
1 <?php defined('SYSPATH') or die('No direct script access.');
2ed7934 Added Facebook PHP SDK, added initial support for Login using FB
Mikito Takada authored
2
32759d1 Completed FB-login implementation.
Mikito Takada authored
3 return array(
bc6ebe9 Remove .hgtags, fix whitespace in config file.
Mikito Takada authored
4 /**
5 * The number of failed logins allowed can be specified here:
6 * If the user mistypes their password X times, then they will not be permitted to log in during the jail time.
7 * This helps prevent brute-force attacks.
8 */
9 'auth' => array(
10 /**
11 * Define the maximum failed attempts to login
12 * set 0 to disable the login jail
13 */
14 'max_failed_logins' => 5,
15 /**
16 * Define the time that user who archive the max_failed_logins will need to
17 * wait before his next attempt
18 */
19 'login_jail_time' => "5 minutes",
20 ),
21 /**
22 * 3rd party providers supported/allowed.
23 */
efcb9b6 Add enable/disable provider via configuration; add provider icons in ind...
Mikito Takada authored
24 'providers' => array(
25 /**
26 * Toggle Facebook support: if set, then users can log in using Facebook.
27 *
28 * Setup:
29 * - You need the extra table from schema.sql for storing 3rd party identifiers
30 * - You must register your app with FB and add the information in /config/facebook.php
31 * - You must have the Facebook SDK at /vendors/facebook/src/facebook.php (bundled in the default repo)
32 *
33 */
34 'facebook' => true,
35 /**
36 * Toggle Twitter support: if set, users can log in using Twitter
37 *
38 * Setup:
39 * - You need the extra table from schema.sql for storing 3rd party identifiers
40 * - You must register your app with Twitter and add the information in /config/oauth.php (Kohana-Oauth's config)
bc6ebe9 Remove .hgtags, fix whitespace in config file.
Mikito Takada authored
41 * - You must enable the Kohana Core oauth module
efcb9b6 Add enable/disable provider via configuration; add provider icons in ind...
Mikito Takada authored
42 */
43 'twitter' => true,
44 /**
45 * Toggle Google support: if set, users can log in using their Google account.
46 *
47 * Setup:
48 * - You need the extra table from schema.sql for storing 3rd party identifiers
bc6ebe9 Remove .hgtags, fix whitespace in config file.
Mikito Takada authored
49 * - You must have LightOpenID in /vendors/lightopenid/openid.php (bundled in the repo)
efcb9b6 Add enable/disable provider via configuration; add provider icons in ind...
Mikito Takada authored
50 */
51 'google' => true,
52 /**
53 * Toggle Yahoo support: if set, users can log in using their Yahoo account.
54 *
55 * Setup:
56 * - You need the extra table from schema.sql for storing 3rd party identifiers
bc6ebe9 Remove .hgtags, fix whitespace in config file.
Mikito Takada authored
57 * - You must have LightOpenID in /vendors/lightopenid/openid.php (bundled in the repo)
efcb9b6 Add enable/disable provider via configuration; add provider icons in ind...
Mikito Takada authored
58 */
59 'yahoo' => true,
60 ),
b68fd1f UI and config improvements.
Mikito Takada authored
61 /**
32759d1 Completed FB-login implementation.
Mikito Takada authored
62 * Toggle email support: if set, then users (except admins) can reset user accounts via email.
63 * They will be sent an email with a reset token, which they enter, then their password will be reset to a new random password.
8657065 Added support for configuration via config\useradmin.php
Mikito Takada authored
64 *
32759d1 Completed FB-login implementation.
Mikito Takada authored
65 * Setup:
d629faf Add reCaptcha support from jnbdz's fork. Add support for disabling reCap...
Mikito Takada authored
66 * - You must have the Kohana-email module enabled (bundled in default repo)
32759d1 Completed FB-login implementation.
Mikito Takada authored
67 */
68 'email' => true,
d629faf Add reCaptcha support from jnbdz's fork. Add support for disabling reCap...
Mikito Takada authored
69 /* change this to the email address you want the password reset emails to come from. */
6b289f0 @gartz Upgraded Login to work with new ORM Driver
gartz authored
70 'email_address' => 'no-response@example.com',
d629faf Add reCaptcha support from jnbdz's fork. Add support for disabling reCap...
Mikito Takada authored
71 /**
72 * Toggle reCaptcha support: if set, then during registration the user is shown
b68fd1f UI and config improvements.
Mikito Takada authored
73 * a reCaptcha which they must answer correctly (unless they are using one of the 3rd party accounts).
d629faf Add reCaptcha support from jnbdz's fork. Add support for disabling reCap...
Mikito Takada authored
74 *
75 * Setup
76 * - You must have the reCaptcha library (e.g. http://recaptcha.net) in your vendors directory. (bundled in the default repo)
77 * - You must set the private and public key in /config/recaptcha.php from https://www.google.com/recaptcha/admin/create
78 */
79 'captcha' => false,
a3d080b @gartz Merge branch 'mixu/master'
gartz authored
80 );
Something went wrong with that request. Please try again.