return false;
}
static User getCurrentUser(String username) {
if(username == null) return null;
User user = null;
if(username.contains("@")) {
String oldNamespace = NamespaceManager.get();
String subscriberName = username.substring(username.indexOf("@")+1);
Subscriber subscriber = Subscriber.findByName(subscriberName);
if(null==subscriber) return null;
username = username.substring(0, username.indexOf("@"));
flash.put("residence", subscriber.name);
flash.put("usernameV", username);
NamespaceManager.set(subscriber.name);
user = User.findByUsername(username);
NamespaceManager.set(oldNamespace);
} else {
if(Play.configuration.getProperty("batzen.username", "root").equals(username)) {
user = new User();
user.username = Play.configuration.getProperty("batzen.username", "root");
user.password = Play.configuration.getProperty("batzen.password", "7af34762e3acde5ebb77e1ea37bc4be69cb3ba660b3637e3fb3aa84fb0ce36f9fd51880bdc5c455b9b63221d671ce0ed4726542713d658ce8b43e9b77bd2d2ca");
return user;
}
}