用户只登录一次下次访问的时候使用cookie而不是username或者是密码 失效 1234567 curl -c c.txt http://localhost:8080/api/v1/login -u user1:pass1curl -b c.txt --data '{titl...}' http://localhost:8080/api/v1/poems logging in 12345 def GET(self): user = require_authenticated_user( self.db) token = generate_token() self.db.tokens[tooken] = {"user": user} 赞微海报分享
近期评论