wicket-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor Vaynberg" <igor.vaynb...@gmail.com>
Subject passwordtextfield
Date Wed, 15 Aug 2007 20:44:43 GMT
i removed encryption support from passwordtextfield as it seems kinda funky
to me.

we would encrypt a value before rendering it, then decrypt it before
applying it to the model.

but how do you decrypt a user-entered string? so the field would start as
<input value="encrypted"/>
but then when submitted it would submit the clear text value, which we would
then try to decrypt?

also the current impl of
protected final void onComponentTag(final ComponentTag tag)
    {
        super.onComponentTag(tag);
        tag.put("value", getResetPassword() ? "" :
getModelObjectAsString());
    }

would also always set the clear text value anyways :|

-igor

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message