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
Ver 2.5-M1 User.scala: not found: value salt
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
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
 
Kevin Lau  
View profile  
 More options Oct 6 2012, 8:37 am
From: Kevin Lau <kevinyp...@gmail.com>
Date: Sat, 6 Oct 2012 05:37:50 -0700 (PDT)
Local: Sat, Oct 6 2012 8:37 am
Subject: Ver 2.5-M1 User.scala: not found: value salt

Hi,

Ver 2.4 is good.
Problem occurred "User.scala:218: not found: value salt [error]
 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.


 
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.
Antonio Salazar Cardozo  
View profile  
 More options Oct 6 2012, 11:13 am
From: Antonio Salazar Cardozo <savedfastc...@gmail.com>
Date: Sat, 6 Oct 2012 08:13:27 -0700 (PDT)
Local: Sat, Oct 6 2012 11:13 am
Subject: Re: Ver 2.5-M1 User.scala: not found: value salt

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 .
Thanks,
Antonio


 
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.
Kevin Lau  
View profile  
 More options Oct 6 2012, 5:14 pm
From: Kevin Lau <kevinyp...@gmail.com>
Date: Sat, 6 Oct 2012 14:14:38 -0700 (PDT)
Local: Sat, Oct 6 2012 5:14 pm
Subject: Re: Ver 2.5-M1 User.scala: not found: value salt

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:


 
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.
Peter Petersson  
View profile  
 More options Oct 7 2012, 5:36 am
From: Peter Petersson <petersson.pe...@gmail.com>
Date: Sun, 07 Oct 2012 11:36:42 +0200
Local: Sun, Oct 7 2012 5:36 am
Subject: Re: [Lift] Re: Ver 2.5-M1 User.scala: not found: value salt

Hi Lau

I will take a look at it. This code was published when there was a
salt:ing discussion going on regarding record.
I have not done much work in lift involving record and user
authentication lately but I think there may be some newer and better
ways to handle it in lift 2.5 maybe David W can elaborate on that.

For reference here is the code:
https://github.com/karma4u101/Basic-SquerylRecord-User-Setup

On 10/06/2012 11:14 PM, Kevin Lau wrote:


 
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.
Peter Petersson  
View profile  
 More options Oct 7 2012, 10:46 am
From: Peter Petersson <petersson.pe...@gmail.com>
Date: Sun, 07 Oct 2012 16:45:54 +0200
Local: Sun, Oct 7 2012 10:45 am
Subject: Re: [Lift] Re: Ver 2.5-M1 User.scala: not found: value salt

I just took a quick look at the code and the reason it dose not compile
for lift 2.5-M1 is that there are no longer a concrete value member
'salt' in the net.liftweb.record.field.PasswordTypedField trait and I am
not sure how to get around this.
There is probably some new slicker mechanism for retrieving/holding the
salt  in lift 2.5 record

... maybe someone already have a blog post or something showing how it
should be done in 2.5 ?

best regards
   Peter Petersson

On 10/06/2012 11:14 PM, Kevin Lau wrote:


 
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.
Peter Petersson  
View profile  
 More options Oct 7 2012, 4:05 pm
From: Peter Petersson <petersson.pe...@gmail.com>
Date: Sun, 07 Oct 2012 22:05:36 +0200
Local: Sun, Oct 7 2012 4:05 pm
Subject: Re: [Lift] Re: Ver 2.5-M1 User.scala: not found: value salt

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:


 
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.
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:


 
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.
Peter Petersson  
View profile  
 More options Oct 7 2012, 4:29 pm
From: Peter Petersson <petersson.pe...@gmail.com>
Date: Sun, 07 Oct 2012 22:29:41 +0200
Local: Sun, Oct 7 2012 4:29 pm
Subject: Re: [Lift] Re: Ver 2.5-M1 User.scala: not found: value salt

The Basic-SquerylRecord-User-Setup example [1] is now updated to work
with Lift 2.5-M1

[1] https://github.com/karma4u101/Basic-SquerylRecord-User-Setup

best regards
   Peter Petersson

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


 
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.
Kevin Lau  
View profile  
 More options Oct 7 2012, 4:46 pm
From: Kevin Lau <kevinyp...@gmail.com>
Date: Sun, 7 Oct 2012 13:46:39 -0700 (PDT)
Local: Sun, Oct 7 2012 4:46 pm
Subject: Re: [Lift] Re: Ver 2.5-M1 User.scala: not found: value salt

Woohoo! Thanks.


 
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.
Diego Medina  
View profile  
 More options Oct 7 2012, 11:22 pm
From: Diego Medina <di...@fmpwizard.com>
Date: Sun, 7 Oct 2012 23:22:29 -0400
Local: Sun, Oct 7 2012 11:22 pm
Subject: Re: [Lift] Re: Ver 2.5-M1 User.scala: not found: value salt
Thanks for updating this Peter!

  Diego

On Sun, Oct 7, 2012 at 4:29 PM, Peter Petersson

--
Diego Medina
Lift/Scala Developer
di...@fmpwizard.com
http://www.fmpwizard.com

 
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.
End of messages
« Back to Discussions « Newer topic     Older topic »