mirror of
https://github.com/gmemstr/pogo.git
synced 2024-09-19 17:21:10 +01:00
Remove badges from README and redirect to correct login route
This commit is contained in:
parent
db24981641
commit
57b24c0522
|
@ -2,6 +2,8 @@
|
|||
|
||||
## 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.
|
||||
|
||||
## Getting Started
|
||||
|
@ -11,10 +13,6 @@ There are a couple options for getting Pogo up and running.
|
|||
- [Download the latest release](#running)
|
||||
- [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
|
||||
|
||||
- Automatic RSS and JSON feed generation
|
||||
|
|
|
@ -68,7 +68,7 @@ func RequireAuthorization(permission int) common.Handler {
|
|||
if err != nil {
|
||||
fmt.Println(err.Error())
|
||||
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{
|
||||
Message: "Unauthorized! Redirecting to /login",
|
||||
StatusCode: http.StatusTemporaryRedirect,
|
||||
|
|
Loading…
Reference in a new issue