-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added user login for local authentication (#107)
* added user login for local authentication * password feild changed, username changed * added login button in landing page * updated readme * login page styling added * updated authentication service to update new password * removed sessions from tenant applications list * reverted STATIC_URL to it's old state from taking varible * Update backend/README.md Co-authored-by: Hari John Kuriakose <[email protected]> Signed-off-by: ali <[email protected]> --------- Signed-off-by: ali <[email protected]> Co-authored-by: vishnuszipstack <[email protected]> Co-authored-by: Hari John Kuriakose <[email protected]>
- Loading branch information
1 parent
cc517b6
commit 6f53013
Showing
14 changed files
with
389 additions
and
165 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
from django.conf import settings | ||
|
||
|
||
class LoginConstant: | ||
INVITATION = "invitation" | ||
ORGANIZATION = "organization" | ||
|
@@ -35,14 +38,21 @@ class Cookie: | |
class ErrorMessage: | ||
ORGANIZATION_EXIST = "Organization already exists" | ||
DUPLICATE_API = "It appears that a duplicate call may have been made." | ||
USER_LOGIN_ERROR = "Invalid username or password. Please try again." | ||
|
||
|
||
class DefaultOrg: | ||
ORGANIZATION_NAME = "mock_org" | ||
MOCK_ORG = "mock_org" | ||
MOCK_USER = "mock_user" | ||
MOCK_USER = "unstract" | ||
MOCK_USER_ID = "mock_user_id" | ||
MOCK_USER_EMAIL = "[email protected]" | ||
MOCK_USER_PASSWORD = settings.DEFAULT_AUTH_PASSWORD | ||
|
||
|
||
class UserLoginTemplate: | ||
TEMPLATE = "login.html" | ||
ERROR_PLACE_HOLDER = "error_message" | ||
|
||
|
||
class PluginConfig: | ||
|
Oops, something went wrong.