Merge pull request #559 from bradrydzewski/master

added log message when user attempts to login but registration closed
This commit is contained in:
Brad Rydzewski 2014-10-13 21:42:45 -07:00
commit 7ee43d4240
2 changed files with 7 additions and 0 deletions

View file

@ -10,6 +10,12 @@
We highly recommend running Docker with the AUFS storage driver. You can verify Docker is using We highly recommend running Docker with the AUFS storage driver. You can verify Docker is using
the AUFS storage driver with the following command `sudo docker info | grep Driver:` the AUFS storage driver with the following command `sudo docker info | grep Driver:`
## Upgrading
If you are upgrading from `0.2` I would recommend waiting a few weeks for the master
branch to stabilize. There was a huge amount of refacotring that destabilized the codebase
and I'd hate for that to impact any real world installations.
## Installation ## Installation
**This is project is alpha stage. Consider yourself warned** **This is project is alpha stage. Consider yourself warned**

View file

@ -52,6 +52,7 @@ func GetLogin(c web.C, w http.ResponseWriter, r *http.Request) {
if capability.Enabled(ctx, capability.Registration) == false { if capability.Enabled(ctx, capability.Registration) == false {
users, err := datastore.GetUserList(ctx) users, err := datastore.GetUserList(ctx)
if err != nil || len(users) != 0 { if err != nil || len(users) != 0 {
log.Println("Unable to create account. Registration is closed")
w.WriteHeader(http.StatusForbidden) w.WriteHeader(http.StatusForbidden)
return return
} }