From: <pka...@us...> - 2009-07-08 10:41:30
|
Revision: 323 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=323&view=rev Author: pkasprzak Date: 2009-07-08 10:41:29 +0000 (Wed, 08 Jul 2009) Log Message: ----------- * Fix "password too short" problem when adding users Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddAccount.bpel Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddAccount.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddAccount.bpel 2009-07-07 14:25:10 UTC (rev 322) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddAccount.bpel 2009-07-08 10:41:29 UTC (rev 323) @@ -67,7 +67,8 @@ </copy> </assign> <elseif> - <condition>$AddAccountIn.account/dt:attribute[dt:name = 'firstName']/dt:value/text() and $AddAccountIn.account/dt:attribute[dt:name = 'surname']/dt:value/text()</condition> + <condition> $AddAccountIn.account/dt:attribute[dt:name = 'firstName']/dt:value/text() + and $AddAccountIn.account/dt:attribute[dt:name = 'surname']/dt:value/text()</condition> <!-- Construct login from firstname + surname --> <assign> <copy> @@ -89,8 +90,9 @@ <!-- Construct Password --> <if> - <condition>$AddAccountIn.account/dt:attribute[dt:name = 'password']/dt:value/text()</condition> - <!-- Password is set in attributes --> + <condition> $AddAccountIn.account/dt:attribute[dt:name = 'password']/dt:value/text() + and string-length($AddAccountIn.account/dt:attribute[dt:name = 'password']/dt:value/text()) > 5</condition> + <!-- Password is set in attributes AND long enough --> <assign> <copy> <from>$AddAccountIn.account/dt:attribute[dt:name = 'password']/dt:value</from> @@ -101,7 +103,7 @@ <!-- Set default password --> <assign> <copy> - <!-- Needs to be longer than 4 characters --> + <!-- Password needs to be 6 characters or longer --> <from>'test12'</from> <to>$Password</to> </copy> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |