[TYPO3-50-general] Validator: unique users
Bastian Waidelich
bastian at typo3.org
Sun Feb 6 18:53:14 CET 2011
Julian Kleinhans wrote:
Hi Julian,
to finally give you an answer...:
> To create new users is no problem.. but, the problem is that i can
> register many users with the same username. I need a check that the
> username is unique.
That is a missing feature still unfortunately, see [1]
For now you can create a validator or check the existence in the
controller like:
if ($this->userRepository->findOneByUsername($username) !== NULL) {
$this->flashMessageContainer->add('Username already used');
$this->redirect(...);
}
makes me think of another nice Fluid widget that checks the availability
of a unique property via ajax..
Best,
Bastian
[1] http://forge.typo3.org/issues/9557
More information about the TYPO3-project-5_0-general
mailing list