-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_config.php
More file actions
28 lines (23 loc) · 823 Bytes
/
_config.php
File metadata and controls
28 lines (23 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/**
* Default EmailVerifiedMember extends Member class, alter line below if you would only like to extend particular sub-classes.
*/
DataObject::add_extension('Member', 'EmailVerifiedMember');
/**
* Alter the Silverstripe Login Forms
*/
Authenticator::register('EmailVerifiedMemberAuthenticator');
Authenticator::unregister('MemberAuthenticator');
/**
* Alter the Security Controller
*/
Object::add_extension('Security', 'EmailVerifiedSecurity');
/**
* Alter Site Config
*/
Object::add_extension('SiteConfig', 'EmailVerifiedMemberSiteConfig');
// ContentController includes Method LoginForm() to use $LoginForm anywhere inside your Templates
// this method needs to be overwritten in Page_Controller
//public function LoginForm() {
// return EmailVerifiedMemberAuthenticator::get_login_form($this);
//}