fix(auth): 更新默认密码配置
- 将默认密码从 MaxKB@123.. 修改为 admin@123.. - 移除多余的特殊符号字符 - 统一后端用户模块和前端界面的默认密码设置v3.2
parent
3918694357
commit
bcb3afa17c
|
|
@ -7,7 +7,7 @@ from common.constants.permission_constants import RoleConstants
|
||||||
from common.utils.common import password_encrypt
|
from common.utils.common import password_encrypt
|
||||||
from maxkb.const import CONFIG
|
from maxkb.const import CONFIG
|
||||||
|
|
||||||
default_password = CONFIG.get('DEFAULT_PASSWORD', 'MaxKB@123..')
|
default_password = CONFIG.get('DEFAULT_PASSWORD', 'admin@123..')
|
||||||
|
|
||||||
|
|
||||||
def insert_default_data(apps, schema_editor):
|
def insert_default_data(apps, schema_editor):
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ from users.models import User
|
||||||
from users.serializers.user import UserProfileSerializer, UserManageSerializer, CheckCodeSerializer, \
|
from users.serializers.user import UserProfileSerializer, UserManageSerializer, CheckCodeSerializer, \
|
||||||
SendEmailSerializer, RePasswordSerializer, SwitchLanguageSerializer, ResetCurrentUserPassword
|
SendEmailSerializer, RePasswordSerializer, SwitchLanguageSerializer, ResetCurrentUserPassword
|
||||||
|
|
||||||
default_password = CONFIG.get('DEFAULT_PASSWORD', 'MaxKB@123..')
|
default_password = CONFIG.get('DEFAULT_PASSWORD', 'admin@123..')
|
||||||
|
|
||||||
|
|
||||||
def get_user_operation_object(user_id):
|
def get_user_operation_object(user_id):
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
·
|
|
||||||
<template>
|
<template>
|
||||||
<div class="app-top-bar-container border-b flex-center">
|
<div class="app-top-bar-container border-b flex-center">
|
||||||
<div class="logo mt-4">
|
<div class="logo mt-4">
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
·
|
|
||||||
<template>
|
<template>
|
||||||
<div class="app-top-bar-container border-b flex-center">
|
<div class="app-top-bar-container border-b flex-center">
|
||||||
<div class="logo mt-4">
|
<div class="logo mt-4">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue