~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-12 15:39:43 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:202
authenticate.py: Now always returns true (temporarily).
    Reason: This allows any user to log in, with any password, for the time
    being. It is necessary to log in with your own user name to get certain
    things to work (and this is the best solution in the absence of a
    database).

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'