[etoys-notify] [JIRA] Updated: (SQ-326) signup within etoys
tracker at squeakland.org
tracker at squeakland.org
Fri Sep 11 12:21:22 EDT 2009
[ http://tracker.immuexa.com/browse/SQ-326?page=all ]
timothy updated SQ-326:
-----------------------
Summary: signup within etoys (was: "Signup" in login box)
> signup within etoys
> -------------------
>
> Key: SQ-326
> URL: http://tracker.immuexa.com/browse/SQ-326
> Project: squeakland
> Type: Improvement
> Components: etoys
> Reporter: timothy
> Fix For: etoys 4.1 - winter 2010
>
>
> A button on the login box that said "Signup" (it's free!), which led to a dialog box that had:
> Username
> Password
> Password Again
> First Name
> Last Name
> Email
> Tell us about yourself (with text box)
> --- java code that does the signup (translate to squeak) --
> public static boolean doWebCreateAccount( String pHost, String pUsername, String pPassword,
> String pEmail )
> {
> boolean aResult = false;
> String aPostUrl = HTTP_HEADER + pHost + "/action/accountSave";
> PostMethod aMethod = new PostMethod( aPostUrl );
> aMethod.addParameter( "username", pUsername );
> aMethod.addParameter( "password", pPassword );
> aMethod.addParameter( "passwordTwo", pPassword ); // add passwordTwo field to box (to Storymill jsp? asks Jon)
> aMethod.addParameter( "email", pEmail );
> try
> {
> int aStatus = getHttpClient().executeMethod( aMethod );
> String respBody = aMethod.getResponseBodyAsString(); // required, though not used
> Header aLocationHeader = aMethod.getResponseHeader( "Location" );
> String aRedirectUri = ( aLocationHeader != null ) ? aLocationHeader.toString() : null;
> aResult = ( ( aStatus == HttpStatus.SC_MOVED_TEMPORARILY ) && ( aRedirectUri !=
> null ) && ( aRedirectUri.indexOf( "accountSaved" ) >= 0 ) );
> }
> catch ( IOException e ) // This can happen with no network connection
> {
> aResult = false;
> }
> finally
> {
> if ( aMethod != null ) aMethod.releaseConnection();
> }
> return aResult;
> }
> ----
> Note that you can add these fields to the above (with this spelling & capitalization):
> firstName
> lastName
> comment
> (last one is for "Tell us about yourself")
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.immuexa.com/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
More information about the etoys-notify
mailing list