[eluser]Raiko[/eluser]
[quote author="kvait" date="1217316869"]Here is a fix:
Code:
switch ((string) $redux)
{
case 'NOT_ACTIVATED':
die('Not activated');
break;
case 'BANNED':
die('Banned');
break;
case true:
die('true');
break;
case false:
die('false');
break;
}
[/quote]
Can someone explain how the banned part works? I thought I understood it.
I created a ban notice with id 1 in the banned table. I set the banned_id field to that id for a user. I can still login fine with that user. No banned flash shows up.
Also, this fix doesn't make much sense to me. Popcorn returned the same type of data for the registration part. I get the correct message with my email activation turned on. Atleast that's how I read the code.