# 所以我无法再登录了 :( 并且收不到登录邮件或忘记密码邮件

**URL:** <https://meta.discourse.org/t/so-i-cant-login-anymore-and-wont-receive-email-logins-or-forgotten-password-emails/126084>\
**Category:** Support\
**Created:** [2019年八月17日 23:41 UTC](https://meta.discourse.org/t/so-i-cant-login-anymore-and-wont-receive-email-logins-or-forgotten-password-emails/126084 "2019-08-17T23:41:55Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)\
**Post date:** [2019年八月18日 02:43 UTC](https://meta.discourse.org/t/so-i-cant-login-anymore-and-wont-receive-email-logins-or-forgotten-password-emails/126084/3 "2019-08-18T02:43:40Z")

</div>

参见：

> [@Create an admin account from the console](https://meta.discourse.org/t/create-admin-account-from-console/17274?u=omarfilip):
>
> bookmark This guide provides instructions for creating an admin account or granting admin privileges using the console in a self-hosted Discourse installation. person_raising_hand Required user level: System Administrator warning Console access required So you want to create/grant Admin privileges or reset user password from console? Great, let’s get started! This guide will cover the following: Accessing the console Creating a new account with admin privileges Resetting an existin…

或

> [@Reset user password by Admin](https://meta.discourse.org/t/reset-user-password-by-admin/56987/7?u=omarfilip):
>
> First of all I would be very careful, and also backup your db. ssh into your server cd /var/discourse ./launcher enter app rails c u = User.find\_by\_email('email@test.com') u.password='zKRR6vTZKvJAB84V9jdgeydS' u.save! ctrl+d to exit I still think the user should figure out their email issues first though, so that they can just do a normal password reset, or change their email address for them.

---

_[View the full topic](https://meta.discourse.org/t/so-i-cant-login-anymore-and-wont-receive-email-logins-or-forgotten-password-emails/126084)._
