On 08/08/2008, at 5:00 AM, Michael Gentry wrote:
public void setPassword(String newPassword)
{
super.setPassword(sha1(newPassword));
}
That's close to what we do too. Some small caveats:
* think carefully about how you implement validation like 'password
length is more than 4 characters'
Andrus, thanks for your reply.
> So is named query mapped via the Modeler or do you add it in the code?
The query is mapped via the Modeler, but it's not shared across DataContexts.
Cloning the query doesn't change anything - the exception is thrown again.
In the mapping, the checkbox "Fetch Dat
Yeah, that's what I've always done, as well.
I was just sitting here wondering if there was a way to take advantage
of the db functions.
Ah well. Thanks!
Robert
On Aug 7, 2008, at 8/72:00 PM , Michael Gentry wrote:
I've done it in code. If your Java side is the same as the DB side,
it rea
I've done it in code. If your Java side is the same as the DB side,
it really doesn't much matter (like using SHA1). (If you want someone
to be able to reset the password from the SQL command-line, for
example). Doing it in code seems fine to me. Create a setPassword()
cover method in Users.jav
Hi all,
Up to this point, whenever I've had to store hashed text (say, the
hashed from of a password) in the db, I've simply hashed in code.
But the question arose the other day of how you would go about doing
this on the database sided (assuming your target db supports your
target hash fun
I'd like to see it, too, so if you can attach to Jira, that would be great.
On Thu, Aug 7, 2008 at 10:29 AM, Andrus Adamchik <[EMAIL PROTECTED]> wrote:
>
> On Aug 7, 2008, at 10:27 AM, Chris Gamache wrote:
>
>> Okay, I have created the bug with the proposed title.
>
> Thanks!
>
>> I have a eclipse
On Aug 7, 2008, at 10:27 AM, Chris Gamache wrote:
Okay, I have created the bug with the proposed title.
Thanks!
I have a eclipse
project with a JUnit test which demonstrates the problem which I can
send to
you if that will assist you in finding the problem.
That would help. You can eit
Okay, I have created the bug with the proposed title. I have a eclipse
project with a JUnit test which demonstrates the problem which I can send to
you if that will assist you in finding the problem.
On Wed, Aug 6, 2008 at 1:54 PM, Andrus Adamchik <[EMAIL PROTECTED]>wrote:
> Hi Chris,
>
> Since I