login name bad word filter happens after USER_LOGIN event
Posted: 20 May 2015, 03:08
first of all, this is a sfs 2.x server side SFSEventType.USER_LOGIN issue. if i am on the wrong section plz move this post to the right spot.
here is my question:
I noticed my word filter works, but it happens after SFSEventType.USER_LOGIN event.
what i need to do is, at my login event, a new user will be created at database if the username doesn't exist. inorder to do that, i need this word filter to be applied before everything else where I find the system does word filter after my user creation process (it created user information at database, and then throw a bad word warning/error)
hence, i would like to know if there is a way to move the word filter before what happens inside USER_LOGIN event.
for example:
addEventHandler(SFSEventType.USER_LOGIN, TESTLOGIN.class);
public class TESTLOGIN extends BaseServerEventHandler {
@Override
public void handleServerEvent(ISFSEvent event) throws SFSException {
< I need word filter before this event or happens at very first line of this event so I don't insert anything into my database >
}
}
here is my question:
I noticed my word filter works, but it happens after SFSEventType.USER_LOGIN event.
what i need to do is, at my login event, a new user will be created at database if the username doesn't exist. inorder to do that, i need this word filter to be applied before everything else where I find the system does word filter after my user creation process (it created user information at database, and then throw a bad word warning/error)
hence, i would like to know if there is a way to move the word filter before what happens inside USER_LOGIN event.
for example:
addEventHandler(SFSEventType.USER_LOGIN, TESTLOGIN.class);
public class TESTLOGIN extends BaseServerEventHandler {
@Override
public void handleServerEvent(ISFSEvent event) throws SFSException {
< I need word filter before this event or happens at very first line of this event so I don't insert anything into my database >
}
}