# Login does not work

**URL:** <https://discuss.write.as/t/login-does-not-work/20047>\
**Category:** Installation\
**Tags:** writefreely\
**Created:** [November 26, 2025, 4:34pm UTC](https://discuss.write.as/t/login-does-not-work/20047 "2025-11-26T16:34:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmkeros](https://discuss.write.as/user_avatar/discuss.write.as/gmkeros/32/5609_2.png) [@gmkeros](https://discuss.write.as/u/gmkeros)\
**Post date:** [November 26, 2025, 4:34pm UTC](https://discuss.write.as/t/login-does-not-work/20047/1 "2025-11-26T16:34:13Z")

</div>

I set up writefreely, have it running on my domain and on port 9393 and I get to the empty page. When I try to login it accepts my credentials but stays on the same page (using wrong credentials gives the expected “wrong password” message.

I am getting the following in the terminal:

2025/11/25 23:36:48 Login: Attempting login for ‘gmkeros’

2025/11/25 23:36:48 Login: Redirecting to /me/new

2025/11/25 23:36:48 “POST /auth/login” 200 370.270552ms “Mozilla/5.0 (Android 14; Mobile; rv:145.0) Gecko/145.0 Firefox/145.0”

2025/11/25 23:36:48 Handler: Required a user, but DIDN’T get one. Sending not logged in.

2025/11/25 23:36:48 “GET /me/new” 401 43.643µs “Mozilla/5.0 (Android 14; Mobile; rv:145.0) Gecko/145.0 Firefox/145.0”

2025/11/25 23:36:48 “GET /login?to=/me/new” 200 658.104µs “Mozilla/5.0 (Android 14; Mobile; rv:145.0) Gecko/145.0 Firefox/145.0”

Anyone got an idea what I am doing wrong?

---

<div class="post-metadata">

**Author:** ![matt](https://discuss.write.as/user_avatar/discuss.write.as/matt/32/2760_2.png) [@matt](https://discuss.write.as/u/matt)\
**Post date:** [November 26, 2025, 4:38pm UTC](https://discuss.write.as/t/login-does-not-work/20047/2 "2025-11-26T16:38:20Z")

</div>

This sounds like maybe the authentication cookie isn’t being saved to your browser. Did you run this step?

```bash
writefreely keys generate

```

If that works and generates the keys, you’ll want to restart the WriteFreely server and then it should work.

---

<div class="post-metadata">

**Author:** ![gmkeros](https://discuss.write.as/user_avatar/discuss.write.as/gmkeros/32/5609_2.png) [@gmkeros](https://discuss.write.as/u/gmkeros)\
**Post date:** [December 2, 2025, 1:11am UTC](https://discuss.write.as/t/login-does-not-work/20047/3 "2025-12-02T01:11:51Z")

</div>

Unfortunately the issue remains the same after regenerating the keys. It still claims if did not get a user.

(To double check I created new users and regenerated the keys again multiple times. In each case it claims it did not get a user)
