This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.conf import settings | |
from django.contrib.auth.models import User | |
from django import forms | |
def my_portal_authenticate(username, password): | |
if username == 'fooDjango' | |
and password == 'barDjango': | |
return True | |
return False |