Changeset 4983:c5bd00aa0b49


Ignore:
Timestamp:
06/16/07 22:38:09 (6 years ago)
Author:
Bobby Moretti <moretti@…>
Branch:
default
Children:
4984:a87820fbdad7, 4986:0feb1a4d6910
Message:

Fixed a link on the registration page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sage/server/notebook/twist.py

    r4982 r4983  
    650650""" 
    651651        else: 
     652            global notebook 
     653            url_prefix = "https" if secure else "http" 
    652654            s = """<html><h1>This is the registration page.</h1> 
    653             <form method="POST" action="https://localhost:8000/register"> 
     655            <form method="POST" action="%s://%s:%s/register" 
    654656            Username: <input type="text" name="username" size="15" />  Password: 
    655657                <input type="password" name="password" size="15" /><br /> Email 
    656658                Address: <input type="text" name="email" size="15" /><br /> <div align="center">  <p><input type="submit" value="Register" /></p>  </div> </form><br /><br /> 
    657             </html>""" 
     659            </html>""" % (url_prefix, notebook.address, notebook.port) 
    658660        return http.Response(stream=s) 
    659661         
Note: See TracChangeset for help on using the changeset viewer.