示例#1
0
文件: signals.py 项目: Joynice/eog
def forget_password(sender, operate_time, ip, operator, operate_detail='重置密码'):
    account = Account(operate_time=operate_time,
                      operator=operator,
                      ip=ip,
                      operate_detail=operate_detail,
                      today=datetime.datetime.today().date())
    account.save()
示例#2
0
文件: signals.py 项目: Joynice/eog
def change_password(sender, operate_time, ip, operate_detail='修改密码'):
    account = Account(operate_time=operate_time,
                      operator=g.eog_user.email,
                      ip=ip,
                      operate_detail=operate_detail,
                      today=datetime.datetime.today().date())
    account.save()