not sure if its a copy and paste issue but you are missing a  /> a the
end of your <cfset var ePwd =
encrypt(trim(arguments.password),EncryptionService.getKey
(),EncryptionServi ce.getAlgorithm())  line

On Nov 12, 10:28 am, Jason Durham <[email protected]> wrote:
> I've found what seems to be a work around, but I'm still puzzled by
> this behavior.  On my User decorator, I have a setPassword() method
> which encrypts a supplied password.  I trim() in the password
> argument, however the result contains an extra space at the end of the
> encrypted string.
>
>         <cffunction name="setPassword" hint="I override Transfer's password
> setter to add encryption" returntype="void" output="no"
> access="public">
>                 <cfargument name="password" hint="Password." type="string" 
> required="true" />
>
>                 <cfset var ePwd =
> encrypt(trim(arguments.password),EncryptionService.getKey(),EncryptionServi 
> ce.getAlgorithm())
>
>                 <cfreturn getTransferObject().setPassword(ePwd) />
>
>         </cffunction>
>
> The problem manifests itself in an empty User object when calling
> Transfer.readByPropertyMap() and passing in a username and encrypted
> password.   If I trim() ePwd before it goes into Transfer's
> setPassword(), everything works as expected.  I've copy/pasted the
> generated SQL from readByPropertyMap() into SQL Management Studio and
> that's where I noticed the extra space (or might be line break).
>
> Should I just continue to use trim() on ePwd or do you think it's
> worthwhile to investigate further?
>
> --
> Jason Durham
--~--~---------~--~----~------------~-------~--~----~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
"transfer-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to