Login via Home

NodeBB Development

Suggested Topics


  • 0 Votes
    1 Posts
    152 Views

    I'm trying to Show recent topics or posts under each category on the home page but not as cards or using widgets is this possible?

  • 3 Votes
    2 Posts
    455 Views

    I've been noticing some UI issues every time a user logs in or out.
    Basically right after you log in, some of the styles do not get picked up (i.e. logo becomes larger, recent-topic cards stop displaying content). Refreshing the page fixes the issue but this is not ideal.

  • 0 Votes
    2 Posts
    1k Views

    I am guessing on all of this, never done it before

    It sounds as if you want to override the local login strategy rather than provide an SSO service.

    To do this you need to provide a local login strategy to passportjs during that hook, just as the core does here:
    https://github.com/NodeBB/NodeBB/blob/master/src/routes/authentication.js#L43

    Instead of controllers.authentication.localLogin, use your own callback function. It is passed (req, username, password, next) just as it is here.

    You would essentially the same thing that function does, but instead of using the local user info, use your own database to compare the username/passwords too.

    If the login is successful, you need to create a local user and attach an ID from your database entry to the user's local database entry, so you can look that up when the user logs in again.

    Also in the admin panel, change the registration type to none, so that users are required to have an account at your existing db.

  • 0 Votes
    2 Posts
    2k Views

    @hieudang use 2 factor authorization instead.

  • Login bug

    Bug Reports
    7
    0 Votes
    7 Posts
    3k Views

    @julian Will do, assuming what I suggested in the issue will actually work. 😆 Currently shopping for a new PC. the pain, but will do it soon.