339ee5d8f906bb4e23302f0ad1f066f0ea03deaf,doudizhu/apps/account/views.py,UserInfoHandler,get,#UserInfoHandler#,43

Before Change


            return

        uid, username = account.get("id"), account.get("username")
        self.set_secure_cookie("user", json_encode({"uid": uid, "username": username}))
        self.write({"uid": uid, "username": username, "room": Storage.find_player_room_id(uid)})

After Change


            self.send_error(404, reason="User not found")
            return

        self.set_secure_cookie("user", json_encode(account))
        self.write({
            **account,
            "room": Storage.find_player_room_id(account["uid"]),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: mailgyc/doudizhu
Commit Name: 339ee5d8f906bb4e23302f0ad1f066f0ea03deaf
Time: 2020-03-17
Author: 4143964+mailgyc@users.noreply.github.com
File Name: doudizhu/apps/account/views.py
Class Name: UserInfoHandler
Method Name: get


Project Name: mailgyc/doudizhu
Commit Name: ce7673257d0e45ee25abdf6d1a60284b01baf9e3
Time: 2020-03-17
Author: 4143964+mailgyc@users.noreply.github.com
File Name: doudizhu/apps/account/views.py
Class Name: LoginHandler
Method Name: post


Project Name: mailgyc/doudizhu
Commit Name: 001177e85fe09a3a2fd4c30600a42b92902b3d43
Time: 2019-09-30
Author: gaoyc@outlook.com
File Name: doudizhu/apps/account/views.py
Class Name: SignupHandler
Method Name: post