修改登陆页提示

This commit is contained in:
何童崇 2023-01-10 14:27:18 +08:00
parent 5002ede16b
commit 7c0dcc8fad
2 changed files with 9 additions and 2 deletions

View File

@ -2,6 +2,7 @@ import React, { useEffect, useState } from "react";
import { Form, Input, Button, Checkbox } from "antd";
import { Link } from "react-router-dom";
import axios from 'axios';
import { Base64 } from 'js-base64';
// import educoderLogo from '../login/educoder.png';
import openKylin from '../login/openKylin.svg';
import gitLink from '../login/gitLink.png';
@ -32,7 +33,7 @@ function Login(props) {
if (!err) {
axios.post(`/accounts/login.json`, {
login: values.username,
password: values.password,
password: Base64.encode(values.password),
autologin: values.remember ? 1 : 0,
}).then((response) => {
if (!response.data.login) {

View File

@ -149,11 +149,17 @@
color: #808080;
font-size: 0.9em;
}
.message, .ant-form-explain{
.ant-form-explain{
position: absolute;
bottom: -1.45em;
color: #D40000;
font-size: 13px;
}
.message{
position: absolute;
// bottom: -1.45em;
color: #D40000;
font-size: 13px;
}
.message.active{
margin-bottom: -30px !important;