Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Ver 2.5-M1 User.scala: not found: value salt
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Peter Petersson  
View profile  
 More options Oct 7 2012, 4:14 pm
From: Peter Petersson <petersson.pe...@gmail.com>
Date: Sun, 07 Oct 2012 22:14:27 +0200
Local: Sun, Oct 7 2012 4:14 pm
Subject: Re: [Lift] Re: Ver 2.5-M1 User.scala: not found: value salt

... my conclusion that the password field is salted by default may be a
bit hasty (still using hashpw with BCrypt for that)
... anyway you do not need to override the match_? function and other
stuff in PasswordTypedField anymore to have a salted password.

best regards
    Peter Petersson

On 10/07/2012 10:05 PM, Peter Petersson wrote:

> Resolved:
> After taking a close look at this I found out that the password filed
> is salted by default (in 2.5) so you do not need to extend it with
> your own trait :)

> so in class User modify the password field like this:
>     :
>     val password = new PasswordField(this) //with
> MyPasswordTypedField[User]
>     :
> i.e remove the trait extension.

> I will do a initial clean up of the example code in a moment and get
> back to it later to get rid of more dead code.

> best regards
>   Peter Petersson

> On 10/06/2012 11:14 PM, Kevin Lau wrote:
>> I use committer Peter P's sample code.

>> https://github.com/karma4u101/Basic-SquerylRecord-User-Setup.

>> The only segment of code that surface the "salt" is as follow:

>> trait MyPasswordTypedField[OwnerType <: Record[OwnerType]] extends
>> Field[String, OwnerType] with PasswordTypedField
>> {
>> def mySalt =
>> {
>> val myValue = valueBox.map(v => v.toString) openOr ""
>> if(myValue.isEmpty || myValue.length <= 28)
>>  salt.get
>> else
>> myValue.substring(28)
>> }
>> ...

>> On Saturday, October 6, 2012 11:13:27 AM UTC-4, Antonio Salazar
>> Cardozo wrote:

>>     Is this User.scala in your code base? If so, we probably need to
>>     see it. Look into posting example code at
>>     https://www.assembla.com/spaces/liftweb/wiki/Posting_example_code
>>     <https://www.assembla.com/spaces/liftweb/wiki/Posting_example_code>
>>     .
>>     Thanks,
>>     Antonio

>>     On Saturday, October 6, 2012 8:37:50 AM UTC-4, Kevin Lau wrote:

>>         Hi,

>>         Ver 2.4 is good.
>>         Problem occurred "User.scala:218: not found: value
>>         salt [error] salt.is/salt.get <http://salt.is/salt.get>" when
>>         upgrade to Upgrade to Ver 2.5-M1.

>>         Revert back to 2.4, is fine again.

>>         Not sure if it is database related issue.

>>         Thanks,
>>         K.

>> --
>> --
>> Lift, the simply functional web framework: http://liftweb.net
>> Code: http://github.com/lift
>> Discussion: http://groups.google.com/group/liftweb
>> Stuck? Help us help you:
>> https://www.assembla.com/wiki/show/liftweb/Posting_example_code


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.