Remove badges from README and redirect to correct login route

This commit is contained in:
gmemstr 2018-01-09 10:03:24 -08:00
parent db24981641
commit 57b24c0522
2 changed files with 3 additions and 5 deletions

View file

@ -1,6 +1,8 @@
<img src="https://cdn.rawgit.com/gmemstr/pogo/ddc9ff3a/assets/web/static/logo-sm.png" alt="Pogo logo" align="right"> <img src="https://cdn.rawgit.com/gmemstr/pogo/ddc9ff3a/assets/web/static/logo-sm.png" alt="Pogo logo" align="right">
## Pogo ## Pogo
[![Build Status](https://travis-ci.org/gmemstr/pogo.svg?branch=master)](https://travis-ci.org/gmemstr/pogo)
Podcast RSS feed generator and CMS in Go. Podcast RSS feed generator and CMS in Go.
@ -11,10 +13,6 @@ There are a couple options for getting Pogo up and running.
- [Download the latest release](#running) - [Download the latest release](#running)
- [Clone the repo and build](#building) - [Clone the repo and build](#building)
## Status
[![Build Status](https://travis-ci.org/gmemstr/pogo.svg?branch=master)](https://travis-ci.org/gmemstr/pogo) [![gitgalaxy](https://img.shields.io/badge/website-gitgalaxy.com-blue.svg)](https://gitgalaxy.com) [![live branch](https://img.shields.io/badge/live-podcast.gitgalaxy.com-green.svg)](https://podcast.gitgalaxy.com) [![follow](https://img.shields.io/twitter/follow/gitgalaxy.svg?style=social&label=Follow)](https://twitter.com/gitgalaxy)
## Features ## Features
- Automatic RSS and JSON feed generation - Automatic RSS and JSON feed generation

View file

@ -68,7 +68,7 @@ func RequireAuthorization(permission int) common.Handler {
if err != nil { if err != nil {
fmt.Println(err.Error()) fmt.Println(err.Error())
if strings.Contains(r.Header.Get("Accept"), "html") || r.Method == "GET" { if strings.Contains(r.Header.Get("Accept"), "html") || r.Method == "GET" {
http.Redirect(w, r, "/login", http.StatusTemporaryRedirect) http.Redirect(w, r, "/#/login", http.StatusTemporaryRedirect)
return &common.HTTPError{ return &common.HTTPError{
Message: "Unauthorized! Redirecting to /login", Message: "Unauthorized! Redirecting to /login",
StatusCode: http.StatusTemporaryRedirect, StatusCode: http.StatusTemporaryRedirect,