summaryrefslogtreecommitdiff
path: root/testapp
diff options
context:
space:
mode:
Diffstat (limited to 'testapp')
-rw-r--r--testapp/myauthentication/README8
-rw-r--r--testapp/myauthentication/backend.py4
2 files changed, 6 insertions, 6 deletions
diff --git a/testapp/myauthentication/README b/testapp/myauthentication/README
index f7e6900..6d1a7b4 100644
--- a/testapp/myauthentication/README
+++ b/testapp/myauthentication/README
@@ -1,9 +1,9 @@
To use authentication from external source, follow the instructions given below:
-1. In settings.py uncomment,
- AUTHENTICATION_BACKENDS = ('myauthentication.backend.MyBackend',) and
- AUTHENTICATION_BACKENDS = ('myauthentication.backend.MyBackend',)
- Give database name, username and passward for the spoken database.
+1. In settings.py,
+ Uncomment AUTHENTICATION_BACKENDS = ('myauthentication.backend.MyBackend',)
+ Uncomment AUTHENTICATION_BACKENDS = ('myauthentication.backend.MyBackend',)
+ Enter database name, username and password for the spoken database.
2. From login.html template comment 'New User? Sign-Up' link.
This is to be done so that user will register only from external
diff --git a/testapp/myauthentication/backend.py b/testapp/myauthentication/backend.py
index 698ec54..d82f11a 100644
--- a/testapp/myauthentication/backend.py
+++ b/testapp/myauthentication/backend.py
@@ -10,8 +10,8 @@ class MyBackend:
def authenticate(self, username=None, password=None):
'''
Checks username and password with external User table.
- If valid then adds the user detail in django User table
- and authenticates user.
+ If valid then adds the user details in django User table
+ and authenticates the user.
'''
try:
user = MdlUser.objects.get(username=username)