- 02 Sep 2008, 15:57
#461
Not force an email for users at login
Hi I put openCATS 0.8.0 on production recently. One request of my users are that they dont want to receive notifications emails every time a candidate apply to a joborder. That because we have open jobs to get the most posibles candidates each day to maintain a cataloged list.. anyway
the first thing I did was left blank the email field on the user profile but...
BUT when they login the system ask for a email to proceed.
Well no big deal because if I write down the url to openCATS we can go directly and authenticated to the system, BUT I dont want to do this every time I log in
so thi is the solution:
Goto /modules/login
open LoginUI.php
around the line 345 you may read somethig like this:

Hi I put openCATS 0.8.0 on production recently. One request of my users are that they dont want to receive notifications emails every time a candidate apply to a joborder. That because we have open jobs to get the most posibles candidates each day to maintain a cataloged list.. anyway
the first thing I did was left blank the email field on the user profile but...
BUT when they login the system ask for a email to proceed.
Well no big deal because if I write down the url to openCATS we can go directly and authenticated to the system, BUT I dont want to do this every time I log in
so thi is the solution:
Goto /modules/login
open LoginUI.php
around the line 345 you may read somethig like this:
Code: Select all
Comment it: /* If no E-Mail set for current user, make user set E-Mail address. */
else if (trim($_SESSION['CATS']->getEmail()) == '')
{
CATSUtility::transferRelativeURI('m=settings&a=forceEmail');
}
Code: Select all
and thats all! problem solved
/* If no E-Mail set for current user, make user set E-Mail address. */
/*else if (trim($_SESSION['CATS']->getEmail()) == '')
{
CATSUtility::transferRelativeURI('m=settings&a=forceEmail');
}*/

Last edited by rotzer on 02 Sep 2008, 16:15, edited 1 time in total.