Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
assetmanagerLogin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
arun.uday
assetmanagerLogin
Commits
73dae1a2
Commit
73dae1a2
authored
Mar 20, 2023
by
arun.uday
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AssetManager-V1.0 - Not yet reviewed
Added the encoding to the conf file
parent
9fbdd464
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
1 deletion
+6
-1
conf/application.conf
conf/application.conf
+3
-0
scripts/config/__init__.py
scripts/config/__init__.py
+1
-0
scripts/config/__pycache__/__init__.cpython-39.pyc
scripts/config/__pycache__/__init__.cpython-39.pyc
+0
-0
scripts/core/handlers/__pycache__/login_handler.cpython-39.pyc
...ts/core/handlers/__pycache__/login_handler.cpython-39.pyc
+0
-0
scripts/core/handlers/login_handler.py
scripts/core/handlers/login_handler.py
+1
-1
scripts/log/AssetManagerlog.log
scripts/log/AssetManagerlog.log
+1
-0
No files found.
conf/application.conf
View file @
73dae1a2
...
...
@@ -5,3 +5,6 @@ PROJECT_ID = 1256
[
PATH
]
base_path
=
scripts
/
sub_path
=
log
/
[
ENCODING
]
ENCODING_TYPE
=
utf
-
8
\ No newline at end of file
scripts/config/__init__.py
View file @
73dae1a2
...
...
@@ -12,6 +12,7 @@ class _Services(BaseSettings):
PORT
:
int
=
Field
(
default
=
8000
,
env
=
"service_port"
)
PROJECT_NAME
=
config
.
get
(
"PROJECT_DETAILS"
,
"PROJECT_NAME"
)
PROJECT_ID
=
config
.
get
(
"PROJECT_DETAILS"
,
"PROJECT_ID"
)
ENCODING_TYPE
=
config
.
get
(
"ENCODING"
,
"ENCODING_TYPE"
)
# path
BASE_PATH
=
config
.
get
(
"PATH"
,
'base_path'
)
SUB_PATH
=
config
.
get
(
"PATH"
,
"sub_path"
)
...
...
scripts/config/__pycache__/__init__.cpython-39.pyc
View file @
73dae1a2
No preview for this file type
scripts/core/handlers/__pycache__/login_handler.cpython-39.pyc
View file @
73dae1a2
No preview for this file type
scripts/core/handlers/login_handler.py
View file @
73dae1a2
...
...
@@ -46,7 +46,7 @@ class LoginHandlers:
def
password_decrypt
(
self
,
password
):
try
:
# encoding the Key
key
=
Services
.
KEY_ENCRYPTION
.
encode
(
'utf-8'
)
key
=
Services
.
KEY_ENCRYPTION
.
encode
(
Services
.
ENCODING_TYPE
)
# decoding the received password
enc
=
base64
.
b64decode
(
password
)
# mode for the decryption
...
...
scripts/log/AssetManagerlog.log
View file @
73dae1a2
...
...
@@ -529,3 +529,4 @@ SyntaxError: invalid syntax
2023-03-20 10:50:16 - INFO - [MainThread:<module>(): 34] - App Starting at 0.0.0.0:8671
2023-03-20 10:50:34 - INFO - [MainThread:<module>(): 34] - App Starting at 0.0.0.0:8671
2023-03-20 10:55:39 - INFO - [MainThread:<module>(): 34] - App Starting at 0.0.0.0:8671
2023-03-20 11:07:35 - INFO - [MainThread:<module>(): 34] - App Starting at 0.0.0.0:8671
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment