Merge pull request #559 from bradrydzewski/master
added log message when user attempts to login but registration closed
This commit is contained in:
commit
7ee43d4240
2 changed files with 7 additions and 0 deletions
|
@ -10,6 +10,12 @@
|
|||
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:`
|
||||
|
||||
## 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
|
||||
|
||||
**This is project is alpha stage. Consider yourself warned**
|
||||
|
|
|
@ -52,6 +52,7 @@ func GetLogin(c web.C, w http.ResponseWriter, r *http.Request) {
|
|||
if capability.Enabled(ctx, capability.Registration) == false {
|
||||
users, err := datastore.GetUserList(ctx)
|
||||
if err != nil || len(users) != 0 {
|
||||
log.Println("Unable to create account. Registration is closed")
|
||||
w.WriteHeader(http.StatusForbidden)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue