Fakultas Ilmu Komputer UI

Commit 17a7d2aa authored by Usman Sidiq's avatar Usman Sidiq
Browse files

[GREEN] done implement all email activation function

parent ad617b03
Pipeline #45290 passed with stages
in 14 minutes and 12 seconds
# Generated by Django 2.1.5 on 2020-05-04 20:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('layanan_khusus', '0011_auto_20200430_1308'),
]
operations = [
migrations.AlterField(
model_name='sekolah',
name='jenis_sekolah',
field=models.CharField(choices=[('IK', 'Inklusi'), ('SG', 'Segregasi')], default='IK', max_length=2),
),
]
......@@ -102,7 +102,6 @@ def activate(request, uidb64, token):
user = User.objects.get(pk=uid)
except(TypeError, ValueError, OverflowError, User.DoesNotExist):
user = None
print(user)
if user is not None and account_activation_token.check_token(user, token):
user.is_active = True
user.save()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment