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]: Access external registration and login #2711

Open
Tasselmi opened this issue Sep 12, 2024 · 4 comments
Labels
discussion Question or dicussion enhancement New feature or request Inactive

Comments

@Tasselmi
Copy link

Tasselmi commented Sep 12, 2024

功能概述 | Describe the feature

我描述下我目前遇到的一个问题,看大佬能否帮我看看我该如何解决。

就是我目前自己的网站有一套自己从0-1开发的注册、登录、修改个人信息等的完整系统,现在我把waline集成到页面的评论里面去了。然后waline呢也有自己的注册登录。我在想,我如何把这两套系统的注册登录统一到一起。

看下大佬有没有什么比较好的建议呢?


Feature Overview | Describe the feature

Let me describe a problem I am currently encountering and see if someone can help me figure out how to solve it.

That is, my own website currently has a complete system for registration, login, modification of personal information, etc. that I developed from scratch. Now I have integrated waline into the comments on the page. Then waline also has its own registration and login. I'm thinking about how I can unify the registration and login of these two systems.

Let me see if you guys have any better suggestions?

@Tasselmi Tasselmi added discussion Question or dicussion enhancement New feature or request labels Sep 12, 2024
@github-actions github-actions bot changed the title [Feature]: 接入外部注册登录 [Feature]: 接入外部注册登录 || [Feature]: Access external registration and login Sep 12, 2024
@lizheming
Copy link
Collaborator

@Tasselmi
Copy link
Author

Tasselmi commented Sep 13, 2024

https://waline.js.org/cookbook/customize/userdb.html

搞java的,表示这次是真的把我给难到了。。。。。。。。啊啊啊


https://waline.js.org/cookbook/customize/userdb.html

Being a Java person, it means that this time it really gave me a hard time. . . . . . . . Ahhhh

@Tasselmi
Copy link
Author

Tasselmi commented Sep 13, 2024

这是claude帮忙写的一段代码:

// Waline Configuration (JavaScript)

const waline = new Waline({
  el: '#waline',
  serverURL: 'your-waline-server-url',
  login: 'force',
  locale: {
    login: '登录'
  },
  login: 'https://your-login-url', // URL to your Scala login page
  logout: 'https://your-logout-url',
  customAuth: true, // Enable custom authentication
  async getUserInfo() {
    // Call your Scala.js Auth.login function
    const userInfo = await Auth.login(email, password);
    return userInfo;
  }
});

是不是完全错误的啊? 真的可以自己定义登录跳转url啥的吗


This is a piece of code that claude helped write:

//Waline Configuration (JavaScript)

const waline = new waline({
  el: '#waline',
  serverURL: 'your-waline-server-url',
  login: 'force',
  locale: {
    login: 'login'
  },
  login: 'https://your-login-url', // URL to your Scala login page
  logout: 'https://your-logout-url',
  customAuth: true, // Enable custom authentication
  async getUserInfo() {
    // Call your Scala.js Auth.login function
    const userInfo = await Auth.login(email, password);
    return userInfo;
  }
});

Isn't that completely wrong? Can you really define your own login redirect URL?

@lizheming
Copy link
Collaborator

lizheming commented Sep 13, 2024

Waline 没有提供相关的能力


Waline does not provide relevant capabilities

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 Inactive
Projects
None yet
Development

No branches or pull requests

2 participants