# Can't sign in as admin user (undefined method \`username' for nil:NilClass)

**URL:** <https://meta.discourse.org/t/cant-sign-in-as-admin-user-undefined-method-username-for-nil-nilclass/68169>\
**Category:** Product Support\
**Created:** [16 Agosto, 2017 17:55 UTC](https://meta.discourse.org/t/cant-sign-in-as-admin-user-undefined-method-username-for-nil-nilclass/68169 "2017-08-16T17:55:38Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![almone](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/almone/32/120777_2.png) [@almone](https://meta.discourse.org/u/almone)\
**Post date:** [17 Agosto, 2017 07:39 UTC](https://meta.discourse.org/t/cant-sign-in-as-admin-user-undefined-method-username-for-nil-nilclass/68169/7 "2017-08-17T07:39:29Z")

</div>

I’m not going to use it on production. I’m trying to install in on my local dev server. The reason is what I want to make some changes to default template. For example I want best authors (most liked) to be shown on front page. Right now I have no idea how to do this. I think it would be easier to understand how template works on dev environment. But that’s another story…

---

_[View the full topic](https://meta.discourse.org/t/cant-sign-in-as-admin-user-undefined-method-username-for-nil-nilclass/68169)._
