I am not completely sure where I got it from - but in a sample app (somewhere)
There is a listener with the following code;
// check hard-coded user name and password;
// in real life we'd be hitting a database, LDAP, or something similar
if (arguments.event.getArg("username") EQ "admin"
AND arguments.event.getArg("password") EQ "password") {
My question isn't specifically about THIS listener - but the code in it got me thinking...
Do you actually write code like this in the listener?
I realise it is from a "sample" application - so I am just confirming;
Would you not have an appropriate method in a service layer, and the listener calls that method?
As always - thanks!
Gavin.