Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gocron支持自动登录吗 #386

Open
FireLv opened this issue Mar 14, 2024 · 4 comments
Open

gocron支持自动登录吗 #386

FireLv opened this issue Mar 14, 2024 · 4 comments

Comments

@FireLv
Copy link

FireLv commented Mar 14, 2024

gocron有什么配置支持 自动登录

目前需要实现 系统x,集成gocron页面

系统x单击菜单,给gocron传入用户名和密码,跳转gocron,无需二次登录

@light6607
Copy link

这种可以直接js实现吧,读取页面的参数,输入到dom元素中,然后自动登录
window.onload = function (){
document.querySelector("#login").click()
}

@FireLv
Copy link
Author

FireLv commented Mar 15, 2024

这种可以直接js实现吧,读取页面的参数,输入到dom元素中,然后自动登录 window.onload = function (){ document.querySelector("#login").click() }

不是gocron页面内的自动登录,是 通过链接给gocron传参数,实现gocron自动登录,避免系统嵌入,出现二次登录

@reggiepy
Copy link

gocron有什么配置支持 自动登录

目前需要实现 系统x,集成gocron页面

系统x单击菜单,给gocron传入用户名和密码,跳转gocron,无需二次登录

这种情况下,自己实现一个携带token跳转登录验证的接口比较合适吧,接口里面用页面带过来的token去校验登录token是否有效。可以避免和gocron自带的登录混合在一起。

@kehuai007
Copy link

kehuai007 commented Aug 13, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants