Re: Atypical login problem

2011-12-28 Thread azim
=== app_controller.php ===
public $components = array(
'Auth' => array(
'authorize' => 'controller',
'loginAction' => '/users/login',
),
'RequestHandler',
'Security' => array(
'blackHoleCallback' => 'blackHole',
),
'Session',
'Ssl'
);
[...]
public function beforeFilter() {
parent::beforeFilter();

$this->Auth->authError = 'Odmowa dostępu.';
$this->Auth->loginError = 'Logowanie nie powiodło się.';
$this->Auth->loginBlockedUser = 'Twoje konto zostało
zablokowane, skontaktuj się z nauczycielem.';

$user = &$this->Auth->user();
setGlobalSession(&$user);
[...]
=== END: app_controller.php ===



=== users_controller.php ===
public function login() {
if (!empty($this->data) && $this->Auth->user()) {
[...]
} else {
[...]
}
}
=== END: users_controller.php ===



On 28 Gru, 20:05, euromark  wrote:
> without specific code from what you wrote so far (AppController, login
> action of controller etc)
> it isnt possible to help you
>
> On 28 Dez., 09:05, azim  wrote:
>
>
>
>
>
>
>
> > Dear Cooks,
>
> > I do have some serious problem with login action, which I couldn't
> > solve whatsoever. Our aplication is used by many schools (with any
> > type of local configuration). Sometimes when student try to login,
> > "black hole" appears. Based on teachers phone calls its even depends
> > on browser. What's far more dangerous, we recive few notifications,
> > that when some student want to enter website (with his/her data), cake
> > login as different user (it could be also admin account).
>
> > I imagine, it must be some problem with Auth and Session... but what's
> > next?
>
> > Thanks for any suggestions,
> > Artur
>
> > CakePHP 1.3

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Atypical login problem

2011-12-28 Thread euromark
without specific code from what you wrote so far (AppController, login
action of controller etc)
it isnt possible to help you


On 28 Dez., 09:05, azim  wrote:
> Dear Cooks,
>
> I do have some serious problem with login action, which I couldn't
> solve whatsoever. Our aplication is used by many schools (with any
> type of local configuration). Sometimes when student try to login,
> "black hole" appears. Based on teachers phone calls its even depends
> on browser. What's far more dangerous, we recive few notifications,
> that when some student want to enter website (with his/her data), cake
> login as different user (it could be also admin account).
>
> I imagine, it must be some problem with Auth and Session... but what's
> next?
>
> Thanks for any suggestions,
> Artur
>
> CakePHP 1.3

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Atypical login problem

2011-12-28 Thread azim
Dear Cooks,

I do have some serious problem with login action, which I couldn't
solve whatsoever. Our aplication is used by many schools (with any
type of local configuration). Sometimes when student try to login,
"black hole" appears. Based on teachers phone calls its even depends
on browser. What's far more dangerous, we recive few notifications,
that when some student want to enter website (with his/her data), cake
login as different user (it could be also admin account).

I imagine, it must be some problem with Auth and Session... but what's
next?

Thanks for any suggestions,
Artur

CakePHP 1.3

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php