sdelements / lets-chat

Self-hosted chat app for small teams
http://sdelements.github.io/lets-chat
MIT License
9.76k stars 1.58k forks source link

Can't create new account if already logged into lets-chat v0.4.8 #763

Open Timothy-Pulliam opened 6 years ago

Timothy-Pulliam commented 6 years ago

I am using a fresh install of lets-chat. If I log in with an existing user, I cannot create any new user accounts. I get the following error message:

"Woops

Your account is locked."

Even though this user does not even exist. I have verified this by looking in the mongod users table and seeing the user does not exist using the below commands:

[root@server lets-chat]# mongo
MongoDB shell version: 2.6.12
connecting to: test
Server has startup warnings: 
2017-09-21T23:21:20.813+0000 [initandlisten] 
2017-09-21T23:21:20.813+0000 [initandlisten] ** WARNING: Readahead for /var/lib/mongodb is set to 4096KB
2017-09-21T23:21:20.813+0000 [initandlisten] **          We suggest setting it to 256KB (512 sectors) or less
2017-09-21T23:21:20.813+0000 [initandlisten] **          http://dochub.mongodb.org/core/readahead
> use letschat
switched to db letschat
> db.users.find()
{ "_id" : ObjectId("59c44a2c6cc2bb18b4e8d056"), "displayName" : "user1", "lastName" : "user1", "firstName" : "user1", "password" : "$2a$10$zCl8L3VEfO7U1ZUyUyJkGu8.vZx4igavHS1QPMHLioGbiiRdg6EKi", "email" : "user@192.168.1.212", "username" : "user1", "provider" : "local", "messages" : [ ], "openRooms" : [ "59c44a4f6cc2bb18b4e8d057" ], "rooms" : [ ], "joined" : ISODate("2017-09-21T23:24:28.969Z"), "__v" : 1 }
{ "_id" : ObjectId("59c44d4f6cc2bb18b4e8d058"), "displayName" : "user2", "lastName" : "user2", "firstName" : "user2", "password" : "$2a$10$RQW/EEBEOJvgKYzfIhx4BeIlcf8NNMnSoOFvgzKgByHnHociEUPIW", "email" : "user2@192.168.1.212", "username" : "user2", "provider" : "local", "messages" : [ ], "openRooms" : [ ], "rooms" : [ ], "joined" : ISODate("2017-09-21T23:37:51.687Z"), "__v" : 0 }
{ "_id" : ObjectId("59c44d6c6cc2bb18b4e8d059"), "displayName" : "user3", "lastName" : "user3", "firstName" : "user3", "password" : "$2a$10$Ze23llocP9Uw2YyBIw7yw.YQUb5ILl8mqE1nmDzucAcxw7ODgAbv.", "email" : "user3@192.168.1.212", "username" : "user3", "provider" : "local", "messages" : [ ], "openRooms" : [ ], "rooms" : [ ], "joined" : ISODate("2017-09-21T23:38:20.793Z"), "__v" : 0 }

If I then log back out, I am able to create new users again. By the way, I have SELinux set to permissive mode, and firewalld is turned off.

Here are the software versions

[root@server log]# cat /etc/centos-release
CentOS Linux release 7.4.1708 (Core)
[root@server log]# uname -r
3.10.0-693.2.1.el7.x86_64
[root@server log]# python --version
Python 2.7.5
[root@server log]# node --version
v6.11.1
[root@server log]# npm --version
3.10.10
[root@server log]# mongod --version
db version v2.6.12