forked from Gitlink/forgeplus-react
修改登陆页提示
This commit is contained in:
parent
5002ede16b
commit
7c0dcc8fad
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue