Skip to content

Commit 341b3b4

Browse files
committed
user set_password random
1 parent 9604f00 commit 341b3b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

social_app/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ def callback(self, request: Request):
125125
password = str(random.randint(0, timestamp))
126126

127127
user = User.objects.get(email=email)
128+
user.set_password(password)
128129
profile = CommonProfile.objects.create(user=user, name=nickname)
129130

130131
try:

0 commit comments

Comments
 (0)