[FLOW3-general] password recheck

Stephan Schuler Stephan.Schuler at netlogix.de
Tue Nov 22 12:43:18 CET 2011


Hey Thomas.


This is because "@validate" is not a valid annotation any
longer since annotations are based on real PHP classes now
that live in a certain namespace.

Use the following where it fits:

use TYPO3\FLOW3\Annotations as FLOW3;

/**
 * @FLOW3\Validate(type="StringLength", options={ "minimum"=1, "maximum"=100 })
 */


The "use" has to be declared before the class definition
starts, which is just plain PHP stuff.
The annotation uses "@FLOW3\Validate" because it refers
to the class "TYPO3\FLOW3\Annotations\Validate".

You could search the core for "@FLOW3\Validate", it is
used several times.


Kind regards,



Stephan Schuler
Web-Entwickler

Telefon: +49 (911) 539909 - 0
E-Mail: Stephan.Schuler at netlogix.de
Website: media.netlogix.de


--
netlogix GmbH & Co. KG
IT-Services | IT-Training | Media
Andernacher Straße 53 | 90411 Nürnberg
Telefon: +49 (911) 539909 - 0 | Fax: +49 (911) 539909 - 99
E-Mail: info at netlogix.de | Internet: http://www.netlogix.de

netlogix GmbH & Co. KG ist eingetragen am Amtsgericht Nürnberg (HRA 13338)
Persönlich haftende Gesellschafterin: netlogix Verwaltungs GmbH (HRB 20634)
Umsatzsteuer-Identifikationsnummer: DE 233472254
Geschäftsführer: Stefan Buchta, Matthias Schmidt



-----Ursprüngliche Nachricht-----
Von: flow3-general-bounces at lists.typo3.org [mailto:flow3-general-bounces at lists.typo3.org] Im Auftrag von Thomas Plessis
Gesendet: Dienstag, 22. November 2011 12:26
An: General discussion about FLOW3
Betreff: Re: [FLOW3-general] password recheck

It seems like this line does not work in FLOW3 1.0?
* @validate $password \Layh\Events\Validation\Validator\PasswordValidator(minimumLength = 3)

Thomas Plessis
Développeur multimédia
--
TOTEMnumerique
9, Place St Étienne
31000 Toulouse
T. 05 61 14 64 54
F. 05 61 14 64 55

Le 21 nov. 2011 à 14:23, Thomas Layh a écrit :

> Hi together,
>
> I had the same problem some time ago and I started with writing a
> password validator.  I wrote a tutorial about that on my homepage:
> http://www.layh.com/work/flow3-fluid/tutorials/flow3-password-validato
> r.html
>
> I am not sure if this is a good solution but it worked for me. But
> this way you can not set the password directly.
>
> Feedback about this solution is welcome.
>
> Greetings,
> Thomas
>
>
> On Mon, Nov 21, 2011 at 14:11, Thomas Plessis
> <t.plessis at totemnumerique.com>wrote:
>
>> Hi guys,
>>
>> I've the same question like Dawid. Does someone have a solution
>> without creating two fields?
>>
>> regards,
>>
>> Thomas Plessis
>> Développeur multimédia
>> --
>> TOTEMnumerique
>> 9, Place St Étienne
>> 31000 Toulouse
>> T. 05 61 14 64 54
>> F. 05 61 14 64 55
>>
>> Can you say something more about @transient ?
>>
>> But manual check is good for me. Can you paste an example ?
>>
>> Best regards,
>> Dawid Pacholczyk
>>
>> W dniu 2011-09-19 15:17, Peter Niederlag pisze:
>>> Hello,
>>>
>>> Am 16.09.2011 21:41, schrieb Dawid Pacholczyk:
>>>> Hello List,
>>>>  How can I create 2 passwords field to check if the user wrote the
>>>> same password in both with out creating 2 fields in db ? Cause - if
>>>> I`m not wrong - when I create 2 fields in form I`ll get exception
>>>> that the field is not in model
>>>
>>> IMO you can flag it as '@transient' or use a second simple string
>>> argument and perform a manual check in the initFooAction().
>>>
>>> That's at least how I am doing it in "extbase". ;)
>>>
>>> Greets and hth,
>>> Peter
>>
>> _______________________________________________
>> FLOW3-general mailing list
>> FLOW3-general at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general
>>
> _______________________________________________
> FLOW3-general mailing list
> FLOW3-general at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general

_______________________________________________
FLOW3-general mailing list
FLOW3-general at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general


More information about the FLOW3-general mailing list