示例#1
0
 def modhash(self, rand=None, test=False):
     if c.oauth_user:
         # OAuth clients should never receive a modhash of any kind
         # as they could use it in a CSRF attack to bypass their
         # permitted OAuth scopes.
         return None
     return modhash(self, rand=rand, test=test)
示例#2
0
文件: account.py 项目: Acceto/reddit
 def modhash(self, rand=None, test=False):
     if c.oauth_user:
         # OAuth clients should never receive a modhash of any kind
         # as they could use it in a CSRF attack to bypass their
         # permitted OAuth scopes.
         return None
     return modhash(self, rand = rand, test = test)
示例#3
0
文件: account.py 项目: NkL4/reddit
 def modhash(self, rand=None, test=False):
     return modhash(self, rand = rand, test = test)
示例#4
0
 def modhash(self, rand=None, test=False):
     return modhash(self, rand = rand, test = test)