Changeset 4330

Show
Ignore:
Timestamp:
11/14/07 06:03:55 (1 year ago)
Author:
sylvain.hellegouarch
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/nuxleus/Scripts/openid/server/loginGET.xml

    r4222 r4330  
    1616        <advice:current-location.label>Login</advice:current-location.label> 
    1717        <advice:openid.redirect_to>%s</advice:openid.redirect_to> 
     18        <advice:openid.username>%s</advice:openid.username> 
    1819      </page:advice> 
    1920    </page:config> 
  • trunk/nuxleus/Scripts/openid/server/server.py

    r4287 r4330  
    193193        self.mc = mc 
    194194 
    195     def GET(self, redirect_to=None): 
     195    def GET(self, redirect_to=None, openid=None): 
    196196        cherrypy.response.headers['content-type'] = 'application/xml' 
    197197        login_form = file(os.path.join(current_dir, 'loginGET.xml')).read() 
    198         return login_form % quote(redirect_to or '') 
     198        login = '' 
     199        if openid: 
     200            login = extract_login(openid) 
     201        return login_form % (quote(redirect_to or ''), quote(login)) 
    199202 
    200203    def POST(self, login, password, redirect_to=None): 
  • trunk/nuxleus/Web/Development/page/view/module/content/openid/loginform.xml

    r4325 r4330  
    1010<input type="hidden" value="@@openid.redirect_to@@" name="redirect_to" /> 
    1111<label class="openid-form-label">Login:</label> 
    12 <input type="text" value="" name="login" class="openid-single-input" /> 
     12<input type="text" value="@@openid.username@@" name="login" class="openid-single-input" /> 
    1313<br /> 
    1414 
  • trunk/nuxleus/Web/Development/page/view/module/content/openid/signupsuccess.xml

    r4329 r4330  
    33  <view:container id="content" style="base list LtoR width"> 
    44    <view:item id="center"> 
    5       Your OpenID is: @@openid.url@@. You can now <a href="@@base-uri@@/login">login</a>
     5      Your OpenID is: @@openid.url@@. You can now <a href="@@base-uri@@/login">login</a> to amp.fm
    66    </view:item> 
    77  </view:container>