Case specific IF

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Case specific IF

Keith M. Rettig
How do I make the following case specific?

        [if( string( #password == #password2 ) = true )]  or  [if( #password == #password2 )]

right now  Secret == secRet comes out True (as well as succeeds in the second example).  I do not want that to be the result.

Thank you,
Keith.

PS.  Sorry for such an easy one.  Its easiness made it difficult to find in my archive of Lasso mailings.
#############################################################
Attend the Lasso Developer Conference 2014!
October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
http://www.lassosoft.com/LDC-newmarket-2014

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Case specific IF

fletcher sandbeck-2
You can use the [String->Equals] tag with the -Case parameter.

[if(string(#password)->equals(#password2, -case))] … [/if]

http://reference.lassosoft.com/LassoReference.LassoApp?[String-%3EEquals]

[fletcher]

On Sep 18, 2014, at 11:42 AM, Keith M. Rettig <[hidden email]> wrote:

> How do I make the following case specific?
>
> [if( string( #password == #password2 ) = true )]  or  [if( #password == #password2 )]
>
> right now  Secret == secRet comes out True (as well as succeeds in the second example).  I do not want that to be the result.
>
> Thank you,
> Keith.
>
> PS.  Sorry for such an easy one.  Its easiness made it difficult to find in my archive of Lasso mailings.
> #############################################################
> Attend the Lasso Developer Conference 2014!
> October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
> http://www.lassosoft.com/LDC-newmarket-2014
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################
Attend the Lasso Developer Conference 2014!
October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
http://www.lassosoft.com/LDC-newmarket-2014

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Case specific IF

Jonathan Guthrie-3
In reply to this post by Keith M. Rettig
One way of evaluating case sensitivity of strings is using the bytes type.

bytes(#password) == bytes(#password2)

or with Lasso 9,
#password->asBytes == #password2->asBytes



On Sep 18, 2014, at 2:42 PM, Keith M. Rettig <[hidden email]> wrote:

> How do I make the following case specific?
>
> [if( string( #password == #password2 ) = true )]  or  [if( #password == #password2 )]
>
> right now  Secret == secRet comes out True (as well as succeeds in the second example).  I do not want that to be the result.
>
> Thank you,
> Keith.
>
> PS.  Sorry for such an easy one.  Its easiness made it difficult to find in my archive of Lasso mailings.

Jono

----------------------------
Jonathan Guthrie
[hidden email]
@iamjono
LassoSoft Inc.
AIM Chatroom: lassochat

#############################################################
Attend the Lasso Developer Conference 2014!
October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
http://www.lassosoft.com/LDC-newmarket-2014

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Case specific IF

Paul Moebius-3
In reply to this post by fletcher sandbeck-2
[if(string(#password)->(equals(#password2, -case))] … [/if]

missing a (


On Sep 18, 2014, at 11:52 AM, Fletcher Sandbeck <[hidden email]> wrote:

> You can use the [String->Equals] tag with the -Case parameter.
>
> [if(string(#password)->equals(#password2, -case))] … [/if]
>
> http://reference.lassosoft.com/LassoReference.LassoApp?[String-%3EEquals]
>
> [fletcher]
>
> On Sep 18, 2014, at 11:42 AM, Keith M. Rettig <[hidden email]> wrote:
>
>> How do I make the following case specific?
>>
>> [if( string( #password == #password2 ) = true )]  or  [if( #password == #password2 )]
>>
>> right now  Secret == secRet comes out True (as well as succeeds in the second example).  I do not want that to be the result.
>>
>> Thank you,
>> Keith.
>>
>> PS.  Sorry for such an easy one.  Its easiness made it difficult to find in my archive of Lasso mailings.
>> #############################################################
>> Attend the Lasso Developer Conference 2014!
>> October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
>> http://www.lassosoft.com/LDC-newmarket-2014
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> #############################################################
> Attend the Lasso Developer Conference 2014!
> October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
> http://www.lassosoft.com/LDC-newmarket-2014
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################
Attend the Lasso Developer Conference 2014!
October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
http://www.lassosoft.com/LDC-newmarket-2014

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

RE: Case specific IF

Rick Draper-2
In reply to this post by Keith M. Rettig
Hi Keith,

You are likely doing this, but it would be remiss not to highlight that
passwords should be stored as a hashed value in the table and the comparison
should be against an equivalent hash of the entered password string.  i.e.
the password is not in clear text in the table.

Very best regards,

Rick


#############################################################
Attend the Lasso Developer Conference 2014!
October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
http://www.lassosoft.com/LDC-newmarket-2014

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

RE: Case specific IF

Keith M. Rettig
In reply to this post by Keith M. Rettig
Thank you all for the answers.

Yes, Rick I am only storing the hash.

Keith.

> On Sep 18, 2014, at 2:42 PM, Keith M. Rettig <[hidden email]> wrote:
>> How do I make the following case specific?
>> [if( string( #password == #password2 ) = true )]  or  [if( #password == #password2 )]

From various folks;
> bytes(#password) == bytes(#password2)
> #password->asBytes == #password2->asBytes
> [if(string(#password)->(equals(#password2, -case))] ? [/if]
> ———————————————

> From: "Rick Draper" <[hidden email]>
> To: <[hidden email]>
> Subject: RE: Case specific IF
>
> Hi Keith,
>
> You are likely doing this, but it would be remiss not to highlight that
> passwords should be stored as a hashed value in the table and the comparison
> should be against an equivalent hash of the entered password string.  i.e.
> the password is not in clear text in the table.
>
> Very best regards,
>
> Rick

#############################################################
Attend the Lasso Developer Conference 2014!
October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
http://www.lassosoft.com/LDC-newmarket-2014

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>