Skip to content

Commit

Permalink
v0.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjinhub committed Nov 8, 2022
1 parent 9d3d58d commit 94f37dd
Show file tree
Hide file tree
Showing 32 changed files with 333 additions and 334 deletions.
2 changes: 1 addition & 1 deletion core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from core.view import Decorator
from flask import (Flask, send_from_directory)

version = "0.6.1"
version = "0.6.2"

db = Orator()
redis = FlaskRedis()
Expand Down
Binary file modified core/auto/linux/core.so
Binary file not shown.
Binary file modified core/auto/windows/core.pyd
Binary file not shown.
2 changes: 1 addition & 1 deletion core/view/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def before():
if request.method == "POST":
token = request.headers.get("token")

if token:
if token and "W5_TOKEN_" in token:
from core import redis

if redis.exists(token) == 0:
Expand Down
5 changes: 2 additions & 3 deletions core/view/login/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ def login():
md5_password = Random.make_md5_password(string=str(passwd))

if md5_password == user.passwd:

token = Random.make_token(string=account)
token = "W5_TOKEN_" + Random.make_token(string=account)

redis.set(token, str(user.id), ex=60 * 60 * 24 * 7)

Expand All @@ -35,4 +34,4 @@ def login():
return Response.re(data={"token": token, "account": user.account, "nick_name": user.nick_name,
"user_id": user.id})
else:
return Response.re(err=ErrUserPassword)
return Response.re(err=ErrUserPassword)
2 changes: 1 addition & 1 deletion core/web/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel="shortcut icon" type=image/x-icon href=static/favicon.ico><title>W5 SOAR - 无需编写代码的安全自动化平台</title><link href=./static/css/app.9a200ca0d7b2d53163da14a0def3680e.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.86a3a029b89a23111da2.js></script><script type=text/javascript src=./static/js/vendor.4c57ac819e0c732d9433.js></script><script type=text/javascript src=./static/js/app.1866a37489705a48d43e.js></script></body></html>
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel="shortcut icon" type=image/x-icon href=static/favicon.ico><title>W5 SOAR - 无需编写代码的安全自动化平台</title><link href=./static/css/app.186fc1eea961a4c56a0c89051cd69d28.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.ace2bb1f3403ad812fdf.js></script><script type=text/javascript src=./static/js/vendor.4c57ac819e0c732d9433.js></script><script type=text/javascript src=./static/js/app.a88c99f2131ac93e53c7.js></script></body></html>

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/web/static/js/0.75fee1a50e1202fcb49e.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/web/static/js/1.dd89b837ea426853fb0c.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/web/static/js/10.91f57ae8399e74c3145a.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/web/static/js/11.048747144dc7f6422999.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/web/static/js/12.4b8241c86c0c2fd2cc28.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/web/static/js/13.58c2c9e1c5cb4ae487db.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/web/static/js/16.d5fc721bb537576012aa.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/web/static/js/17.1c1b280ebe10200470b7.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/web/static/js/2.9ab5d22ca3941c0a1b98.js

Large diffs are not rendered by default.

282 changes: 282 additions & 0 deletions core/web/static/js/3.79b49356edf1011014a3.js

Large diffs are not rendered by default.

282 changes: 0 additions & 282 deletions core/web/static/js/3.c2e13092480ff51ec32c.js

This file was deleted.

1 change: 1 addition & 0 deletions core/web/static/js/4.9489c62e34f13b342ec4.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion core/web/static/js/4.960c98ade3ce5c60de88.js

This file was deleted.

46 changes: 23 additions & 23 deletions core/web/static/js/5.730b81524870c4f0c20a.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/web/static/js/6.c08715cda3b6f6005513.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/web/static/js/7.cb3391ddd7191d390028.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/web/static/js/8.44c6241906883f765274.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/web/static/js/9.f321d440c2516f3cb3eb.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion core/web/static/js/app.1866a37489705a48d43e.js

This file was deleted.

1 change: 1 addition & 0 deletions core/web/static/js/app.a88c99f2131ac93e53c7.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion core/web/static/js/manifest.86a3a029b89a23111da2.js

This file was deleted.

1 change: 1 addition & 0 deletions core/web/static/js/manifest.ace2bb1f3403ad812fdf.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions core/web/static/js/vendor.4c57ac819e0c732d9433.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docker/sql/w5.sql
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ CREATE TABLE `w5_users` (
`nick_name` varchar(20) NOT NULL DEFAULT '',
`avatar` text,
`email` varchar(50) NOT NULL DEFAULT '',
`token` varchar(32) NOT NULL DEFAULT '',
`token` varchar(50) NOT NULL DEFAULT '',
`status` int NOT NULL DEFAULT '0',
`update_time` datetime DEFAULT NULL,
`create_time` datetime DEFAULT NULL,
Expand Down
2 changes: 1 addition & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def w5_info(**kwargs):
print(" ##@$%|||||||||||!` :%@#@")
print(" ###@&$||||||||!` !&###@")
print(" #####@&&%||||:. `%&#####@")
print(" ########&&&%: W5 SOAR '$&@#######@ v{version}".format(version="0.6.1"))
print(" ########&&&%: W5 SOAR '$&@#######@ v{version}".format(version="0.6.2"))
print("=============================================")
print("* Web : https://w5.io")
print("* Github : https://github.com/w5hub/w5")
Expand Down

0 comments on commit 94f37dd

Please sign in to comment.