summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprathamesh2014-06-06 12:40:15 +0530
committerprathamesh2014-06-06 12:40:15 +0530
commitc4c00dfd3548e2dda9c0fda62cb86fb2237aca10 (patch)
tree6ba6ebde982faa2a431c549a7e1ebe340f22e28a
parentf831a81ab2fb4d664bdb7932e9869b8e7ddcdb72 (diff)
downloadonline_test-c4c00dfd3548e2dda9c0fda62cb86fb2237aca10.tar.gz
online_test-c4c00dfd3548e2dda9c0fda62cb86fb2237aca10.tar.bz2
online_test-c4c00dfd3548e2dda9c0fda62cb86fb2237aca10.zip
minor changes
-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)