[etoys-notify] [JIRA] Commented: (SQ-326) "Signup" in login box

tracker at squeakland.org tracker at squeakland.org
Thu Sep 10 07:57:04 EDT 2009


     [ http://tracker.immuexa.com/browse/SQ-326?page=comments#action_36668 ]
     
Yoshiki Ohshima commented on SQ-326:
------------------------------------

Maybe you meant to write it to SQ-354, but sure, the browser approach is better than doing this in Squeak.  Launching one from Squeak is even desirable.  And, from Squeak or not, we do need a page on the server anyway so it wouldn't change the work load much (I felt there may be more work but not necessarily).

But still I'd prefer to have a really usable working Showcase in the release where people needs to sign up by opening the page manually (and that sign up page can come later than the release, actually) rather than not very well functioning showcase, with not very well functioning sign up page.

> "Signup" in login box
> ---------------------
>
>          Key: SQ-326
>          URL: http://tracker.immuexa.com/browse/SQ-326
>      Project: squeakland
>         Type: Improvement
>   Components: etoys
>     Reporter: timothy
>      Fix For: etoys 4.0 - summer 2009

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