The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/printthread.php(287) : eval()'d code 2 errorHandler->error
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



UserSpice
Registration only allowed with specific domain - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Miscellaneous (https://userspice.com/forums/forumdisplay.php?fid=28)
+--- Forum: Modifications and Hackery (https://userspice.com/forums/forumdisplay.php?fid=29)
+--- Thread: Registration only allowed with specific domain (/showthread.php?tid=696)

Pages: 1 2


Registration only allowed with specific domain - mudmin - 09-01-2017

Yeah. I have google apps, but our org has 4 domains on GApps, so it would be a tiny bit trickier.


Registration only allowed with specific domain - Brandin - 09-01-2017

Hmmm - yeah that might be tricky!

Good luck with that one Wink


Registration only allowed with specific domain - Brandin - 09-26-2017

@Mudmin

Could this be turned into an validation check? Like we have min, max, unique, could we make one called 'allowed' and then the user has to do the PHP portion of getting the domain for it to check? Or would this be more work do you think than if we wrote a PHP script and did a die() or something?

E.g. domain of value must be within the table allowed_domains?


Registration only allowed with specific domain - mudmin - 09-27-2017

It could be. Yeah. I like that idea. It would be super helpful for me.

The big thing is making sure it circumvents people joining with other domains on google/fb. That's how my people accidentally create extra accounts all the time.



Registration only allowed with specific domain - Brandin - 09-27-2017

Although I don't know much about the OAuth, if there not a spot in which we would actually create the account from within our PHP? We could throw the if right before that and extract the domain from the OAuth response? Redirect them to the Registration form with ?Err=Domain not allowed or something.