Merge pull request #19476 from edx/mikix/password-history-migration

Remove PasswordHistory model
This commit is contained in:
Michael Terry
2018-12-19 10:18:49 -05:00
committed by GitHub
2 changed files with 22 additions and 9 deletions

View File

@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2018-12-19 14:30
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('student', '0017_accountrecovery'),
]
operations = [
migrations.RemoveField(
model_name='passwordhistory',
name='user',
),
migrations.DeleteModel(
name='PasswordHistory',
),
]

View File

@@ -790,15 +790,6 @@ EVENT_NAME_ENROLLMENT_DEACTIVATED = 'edx.course.enrollment.deactivated'
EVENT_NAME_ENROLLMENT_MODE_CHANGED = 'edx.course.enrollment.mode_changed'
class PasswordHistory(models.Model):
"""
This model is deprecated, no longer used, and slated for removal.
"""
user = models.ForeignKey(User, on_delete=models.CASCADE)
password = models.CharField(max_length=128)
time_set = models.DateTimeField(default=timezone.now)
class LoginFailures(models.Model):
"""
This model will keep track of failed login attempts