~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/auth/authenticate.py

  • Committer: mattgiuca
  • Date: 2008-01-31 00:10:03 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:343
console: Small refactoring of how server starts up. Currently does not affect
behaviour, but makes it very easy to get the server to start lazily, when the
first line is entered. (Currently starts up on init, due to bug 1883194.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
    # WARNING: Both username and password may contain any characters, and must
30
30
    # be sanitized within this function.
31
 
    # TEMP: Just a hardcoded login
32
 
    return username == 'user' and password == 'pass'
 
31
    # TEMP: Just allow any user to log in
 
32
    return True
 
33
    ## TEMP: Just a hardcoded login
 
34
    #return username == 'user' and password == 'pass'