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

[Feature]: 支持评论时使用自己的登陆系统用户名和邮箱吗? || [Feature]: Is it possible to use your own login system username and email when commenting? #2837

Open
WolfgangBai opened this issue Dec 2, 2024 · 3 comments
Labels
discussion Question or dicussion enhancement New feature or request

Comments

@WolfgangBai
Copy link

WolfgangBai commented Dec 2, 2024

功能概述 | Describe the feature

现在评论时需要填写用户名等。
能支持评论时传入自己登陆系统的用户名吗?不需要用户输入。


Feature Overview | Describe the feature

Now you need to fill in your username etc. when commenting.
Can you support passing in your username to log in to the system when commenting? No user input is required.

@WolfgangBai WolfgangBai added discussion Question or dicussion enhancement New feature or request labels Dec 2, 2024
@github-actions github-actions bot changed the title [Feature]: 支持评论时使用自己的登陆系统用户名和邮箱吗? [Feature]: 支持评论时使用自己的登陆系统用户名和邮箱吗? || [Feature]: Is it possible to use your own login system username and email when commenting? Dec 2, 2024
@lizheming
Copy link
Collaborator

lizheming commented Dec 3, 2024

localStorage 有个 WALINE_USER_META 的 key,可以把信息写到这里面,Waline 初始化的时候会用这个数据进行初始化填充

useStorage<UserMeta>('WALINE_USER_META', {
nick: '',
mail: '',
link: '',
});


localStorage has a key of WALINE_USER_META, where you can write information. When Waline is initialized, this data will be used to initialize and fill it.

useStorage<UserMeta>('WALINE_USER_META', {
nick: '',
mail: '',
link: '',
});

@WolfgangBai
Copy link
Author

WolfgangBai commented Dec 4, 2024

不支持通过参数控制吗?


Doesn't it support parameter control?

@lizheming
Copy link
Collaborator

lizheming commented Dec 5, 2024

目前是不支持的,有需要你可以提个 PR


It is currently not supported. If necessary, you can submit a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Question or dicussion enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants