Ticket #4309: sage-4309_3.patch

File sage-4309_3.patch, 949 bytes (added by TimothyClemans, 14 years ago)
  • sage/server/notebook/avatars.py

    # HG changeset patch
    # User Timothy Clemans <timothy.clemans@gmail.com>
    # Date 1226289410 21600
    # Node ID d72e904b070f91c7f06767ba071e5a853c114bbe
    # Parent  04ff612c9710106e443e3a4d2adf658d2555595f
    #4309
    
    diff -r 04ff612c9710 -r d72e904b070f sage/server/notebook/avatars.py
    a b  
    1919from twisted.python import log
    2020
    2121krb_data = [None, None]
     22krb_auth = False
    2223try:
    2324    import kerberos
    2425except ImportError:
     
    131132                                        ,"", account_type='user',force=True)
    132133                return defer.succeed(username)
    133134                   
    134         if U.password_is(password) or krb_auth:
     135        if U.password_is(password):
    135136            return defer.succeed(username)
    136137        else:
    137138            return defer.succeed(FailedLogin(username,failure_type='password'))