コード例 #1
0
ファイル: apiform.py プロジェクト: pistatium/houkago_app
 def clean_key(self):
     client = self.cleaned_data['client']
     key = self.cleaned_data['key']
     calced_key = make_api_key(client)
     if key != calced_key:
         raise forms.ValidationError(u"invalid key")
     return key
コード例 #2
0
ファイル: my_utils.py プロジェクト: pistatium/houkago_app
def calc_api_key(seed):
	return make_api_key(seed)