开发者

google-app-engine : how to implement user logon success event

开发者 https://www.devze.com 2023-03-25 02:34 出处:网络
I\'m using google-app-engine in python language, I\'m want to do something when user logon success event.

I'm using google-app-engine in python language, I'm want to do something when user logon success event.

for example

def onlogin_success():
  user = users.get_current_user()
 开发者_StackOverflow社区 log('user login %s' + user.nickname())

thanks


You need to generate the login URL via create_login_url and pass in a dest_url param.

The user will be taken to dest_url on successful login.

0

精彩评论

暂无评论...
验证码 换一张
取 消