Booked Scheduler Community Support
May 27, 2017, 12:04:31 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Booked 2.5 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Enforce that only google logins from a certain domain can login?  (Read 396 times)
kavehv
Newbie
*

Karma: 0
Posts: 8


« on: November 18, 2016, 11:38:54 PM »

Is there a way to enforce the domain even on a google login?
Logged
ericsw
Newbie
*

Karma: 0
Posts: 1


« Reply #1 on: December 13, 2016, 04:15:44 PM »

I am interested in this as well. Or any sort of documentation on using the integrated social sign-in, as they are lacking in the basic help.
Logged
SFKSO
Newbie
*

Karma: 0
Posts: 3


« Reply #2 on: January 11, 2017, 12:13:13 PM »

Is there a way to enforce the domain even on a google login?

Yes.

First of all, in config.php set your domain:
Code:
$conf['settings']['authentication']['required.email.domains'] = 'yourdomain.com';

Then, I think that there is a kind of bug in Presenters/Authentication/ExternalAuthLoginPresenter.php line 65:

Code:
$requiredDomainValidator = new RequiredEmailDomainValidator($page->email);

And should be:
Code:
$requiredDomainValidator = new RequiredEmailDomainValidator($profile->email);

Sorry for my poor english and thanks for this great piece of software.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!