Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-ui
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
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smart-operation
so-manage-ui
Commits
848c9973
Commit
848c9973
authored
Nov 21, 2022
by
张俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix](登录): 记住密码base64加密
parent
bdd160b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
index.html
index.html
+1
-1
src/components/login-by-account.vue
src/components/login-by-account.vue
+2
-2
No files found.
index.html
View file @
848c9973
...
...
@@ -4,7 +4,7 @@
<meta
charset=
"UTF-8"
/>
<link
rel=
"icon"
href=
"/favicon.ico"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<title>
apaas5
</title>
<title>
BD-aPaas
</title>
</head>
<body>
<div
id=
"app"
></div>
...
...
src/components/login-by-account.vue
View file @
848c9973
...
...
@@ -87,7 +87,7 @@ export default {
methods
:
{
loginAction
()
{
if
(
this
.
rememberPassword
)
{
let
userinfo
=
encodeURI
(
let
userinfo
=
window
.
btoa
(
encodeURI
(
`
${
this
.
loginForm
.
userid
}
,
${
this
.
loginForm
.
password
}
`
)
);
setCookie
(
"
userinfo
"
,
userinfo
);
...
...
@@ -192,7 +192,7 @@ export default {
created
()
{
this
.
getImg
();
if
(
getCookie
(
"
userinfo
"
))
{
let
userinfo
=
decodeURI
(
decodeURI
(
getCookie
(
"
userinfo
"
))).
split
(
"
,
"
);
let
userinfo
=
window
.
atob
(
decodeURI
(
getCookie
(
"
userinfo
"
))).
split
(
"
,
"
);
this
.
loginForm
.
userid
=
userinfo
[
0
];
this
.
loginForm
.
password
=
userinfo
[
1
];
...
...
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