正在显示
2 个修改的文件
包含
4 行增加
和
2 行删除
... | ... | @@ -62,7 +62,8 @@ class DataManager(BlueprintApi): |
62 | 62 | error = "密码不可为空" |
63 | 63 | else: |
64 | 64 | username = request.form.get("username") |
65 | - password = SM3.encode(request.form.get("password")) | |
65 | + # password = SM3.encode(request.form.get("password")) | |
66 | + password = request.form.get("password") | |
66 | 67 | user = User.query.filter_by( |
67 | 68 | username=username, password=password).first() |
68 | 69 | if not user: | ... | ... |
... | ... | @@ -3,7 +3,8 @@ import logging |
3 | 3 | # 程序部署ip:host |
4 | 4 | deploy_ip_host = "172.26.40.105:8840" |
5 | 5 | # 系统数据库 |
6 | -SQLALCHEMY_DATABASE_URI = "postgresql://postgres:chinadci@172.26.60.101:5432/dmap_manager" | |
6 | +# SQLALCHEMY_DATABASE_URI = "postgresql://postgres:chinadci@172.26.60.101:5432/dmap_manager" | |
7 | +SQLALCHEMY_DATABASE_URI = "postgresql://postgres:postgres@localhost:8843/dmap_dms_test1" | |
7 | 8 | |
8 | 9 | |
9 | 10 | # 指定精华表所在位置(必须为空间库),设置为None则存放在各自的实体库中 | ... | ... |
请
注册
或
登录
后发表评论