Software Freedom Law Center

Changeset 147

Show
Ignore:
Timestamp:
06/11/08 15:48:26 (2 months ago)
Author:
landon
Message:

Beefing up the authentication module

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/antimatter/luke/myplugs/libtracker/auth.py

    r146 r147  
    22from gozerbot.generic import waitforuser, rlog 
    33from user import User 
     4 
     5authenticated = {} 
     6 
    47def authenticate_name(bot, ievent): 
    5     """ Not authentication, just checks that the name exists """ 
     8    """ Not authentication, just checks that the name exists 
     9    Input: Bot, Ircevent 
     10    Output: User (or None if authentication failed) 
     11    """ 
    612    bot.say(ievent.nick,"Username?",how='msg') 
    713    #rlog(99,"Debug","Testing for auth reload") 
     
    1925    return user 
    2026 
    21 def check_auth(bot, ievent): 
     27def check_auth(ievent): 
     28    """ Checks to see if the user is already authenticated 
     29    Input: Ircevent 
     30    Output: User 
     31    """ 
    2232    pass 
    2333 
     34def set_auth(ievent): 
     35    """ Puts the userhost into the authentication dictionary 
     36    Input: Ircevent 
     37    Output: bool 
     38    """ 
     39    pass 
  • trunk/antimatter/luke/myplugs/libtracker/tracker.py

    r146 r147  
    77    user = auth.check_auth(ievent) 
    88    if (user.name == None): 
    9         ievent.reply("I'm sorry Dave, but I'm afraid I don't know your name") 
     9        ievent.reply("I'm sorry Dave, but I'm afraid you haven't \ 
     10                authenticated yet") 
    1011        return 
    1112    ievent.reply(user.name) 

SFLC Main Page

[frdm] Support SFLC