Habitica: Dedicated Log-In Page

Created on 15 Jan 2014  Â·  14Comments  Â·  Source: HabitRPG/habitica

Is there a logistical reason there's no dedicated log-in page? Often, the pop-over log-in screen is twitchy on my tablet, an issue I've found to be non-problematic on other sites by accessing their log-in page proper. Lately, it's been even more of an issue, the pop-over page freezing on log-in attempt, giving me scroll control to the under layer then crashing my browser.

(It is crashing Chrome, Puffin, and Puffin Free. It was not crashing any of them yesterday. But even if it wasn't crashing them, an actual page that could be visited to log in, if so desired, could be nice.)

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

medium status on hold

All 14 comments

I would really like this. A dedicated login page with minimal JavaScript could be a useful workaround for the Safari bug where the "play" button doesn't always work, and it's likely to be more accessible. It would also allow password managers to work (I believe some don't at the moment).

It wouldn't have to replace the existing front page. It could just be a new, relatively plain page that we can direct users to when necessary (or have a small message on the normal login form that directs them to it if they're having problems).

@lemoness @AnitaYCheng What do you think?

I'd be amenable to this!

On Sun, May 17, 2015 at 3:19 PM, Alys [email protected] wrote:

I would really like this. A dedicated login page with minimal JavaScript
could be a useful workaround for the Safari bug where the "play" button
doesn't always work, and it's likely to be more accessible. It would also
allow password managers to work (I believe some don't at the moment).

It wouldn't have to replace the existing front page. It could just be a
new, relatively plain page that we can direct users to when necessary (or
have a small message on the normal login form that directs them to it if
they're having problems).

@lemoness https://github.com/lemoness @AnitaYCheng
https://github.com/AnitaYCheng What do you think?

—
Reply to this email directly or view it on GitHub
https://github.com/HabitRPG/habitrpg/issues/2413#issuecomment-102864659.

Sounds good to me!

It will actually be useful to have a variety of registration pages, too, as
we go on - for example, one registration page for when you are clicking on
a link that invited you to a guild, etc.

On Mon, May 18, 2015 at 5:12 PM, anita [email protected] wrote:

Sounds good to me!

—
Reply to this email directly or view it on GitHub
https://github.com/HabitRPG/habitrpg/issues/2413#issuecomment-103277190.

@Alys Is this still planned?

@MathWhiz I'd still really like to see this happen for the reasons listed above. It might also help with https://github.com/HabitRPG/habitrpg/issues/5428 if we don't fix that first.

@Alys I can try doing this!

@MathWhiz Great! Thank you!!

@Alys @lemoness would this replace the dialog box? How should users get to it?

It wouldn't replace the dialog box - the current method of logging in should remain as it is. Instead, you can create a new page https://habitica.com/static/login with a non-popup form in the page. For the basics of creating a new static page, have a look at how https://habitica.com/static/clear-browser-data is done.

@Alys how do I change the password for a user from the database (I forgot my password)

You could probably set up something to receive the email, but it's likely to be easier to use mongo, and even if you're not very familiar with mongo yet, this will be a good exercise. :)

Create a new user account with the password that you want to use. Export its data and look in the "auth" object (example below). Copy the values of "auth.local.hashed_password" and "auth.local.salt" to the old account. You'll then be able to log in to it with that password.

    "auth": {
        "local": {
            "email": "[email protected]",
            "hashed_password": "23198732985987ee7d89e10cb7a62a2849321777",
            "salt": "9887972b73",
            "username": "Bob",
            "lowerCaseUsername": "bob"
        },
        "timestamps": {
            "created": "2013-01-10T06:34:12.804Z",
            "loggedin": "2016-04-26T17:08:56.224Z"
        }
    },

Note that by "export its data" I mean use a mongo command to dump the user document. The in-game Data > Export feature won't show you the authentication information.

We've made many changes to the website, and this should have been addressed. I'm closing this ticket, but if you feel that it should be reopened for any reason, please feel free to leave a comment!

Was this page helpful?
0 / 5 - 0 ratings