File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ def validate(self, attrs):
249
249
try :
250
250
alias_type , alias = self .validate_alias (attrs )
251
251
user_id = self .context .get ("user_id" )
252
- user = User .objects .get (** {'pk ' : user_id , alias_type : alias })
252
+ user = User .objects .get (** {'id ' : user_id , alias_type : alias })
253
253
callback_token = attrs .get ('token' , None )
254
254
255
255
token = CallbackToken .objects .get (** {'user' : user ,
@@ -270,7 +270,7 @@ def validate(self, attrs):
270
270
logger .debug ("drfpasswordless: User token mismatch when verifying alias." )
271
271
272
272
except CallbackToken .DoesNotExist :
273
- msg = _ ('We could not verify this token .' )
273
+ msg = _ ('We could not verify this alias .' )
274
274
logger .debug ("drfpasswordless: Tried to validate alias with bad token." )
275
275
pass
276
276
except User .DoesNotExist :
You can’t perform that action at this time.
0 commit comments