Commit 86894a1f3636ec643ea8c0ec391b9e85ec0928bd

Authored by Luan
1 parent f046ff14

Removing more unnecessary things from user

Showing 1 changed file with 0 additions and 12 deletions   Show diff stats
src/accounts/models.py
@@ -21,18 +21,6 @@ class User(AbstractUser): @@ -21,18 +21,6 @@ class User(AbstractUser):
21 verification_hash = models.CharField(max_length=32, null=True, blank=True) 21 verification_hash = models.CharField(max_length=32, null=True, blank=True)
22 modified = models.DateTimeField(auto_now=True) 22 modified = models.DateTimeField(auto_now=True)
23 23
24 - def check_password(raw_password):  
25 - """  
26 - Returns a boolean of whether the raw_password was correct. Handles  
27 - hashing formats behind the scenes.  
28 - """  
29 - if not raw_password or not self.has_usable_password():  
30 - return False  
31 - return self.password == raw_password  
32 -  
33 - def set_password(self, raw_password):  
34 - self.password = unicode(raw_password)  
35 -  
36 def get_absolute_url(self): 24 def get_absolute_url(self):
37 return reverse('user_profile', kwargs={'username': self.username}) 25 return reverse('user_profile', kwargs={'username': self.username})
38 26