Commit 51ccc4db authored by zauberstuhl's avatar zauberstuhl
Browse files

Merge branch '18-add-notification-to-ganggo' into 'master'

Resolve "Add notification to ganggo"

Closes #18

See merge request !76
parents a69ca9db 2f6b8396
Pipeline #560 canceled with stages
......@@ -2,73 +2,92 @@
[[projects]]
digest = "1:972f38a9c879a4920d1e3a3d3438104b6c06163bfa3e6f4064adb00468d40587"
name = "cloud.google.com/go"
packages = ["civil"]
pruneopts = ""
revision = "c728a003b238b26cef9ab6753a5dc424b331c3ad"
version = "v0.27.0"
[[projects]]
branch = "master"
digest = "1:2b9fc3d821b952ce49b32a7ffc637e6c6a239f617fbe65568e991805028f8c2a"
name = "git.feneas.org/ganggo/api"
packages = [
"app",
"app/controllers",
"app/helpers"
"app/helpers",
]
pruneopts = ""
revision = "2fb8ead5ef0fe4b57dbbbdf147e848fca6486480"
[[projects]]
branch = "master"
digest = "1:be85c69c0e58a29bcf18e733711ef8a9d8241da25caf101ce734ded11cd939c2"
name = "git.feneas.org/ganggo/federation"
packages = [
".",
"helpers"
"helpers",
]
pruneopts = ""
revision = "76129a9a4da34965bb2cce23e5e5808a5437c2a6"
[[projects]]
digest = "1:9c878fef3f451ba6833338f3ce6f9598eec466e41089469faa50fb664bc287c1"
name = "git.feneas.org/ganggo/gorm"
packages = [
".",
"dialects/mssql",
"dialects/mysql",
"dialects/postgres",
"dialects/sqlite"
"dialects/sqlite",
]
pruneopts = ""
revision = "c5bf88f4a1f896b106734023e9e8d68bcf9ca5ba"
version = "v1.9.3"
[[projects]]
branch = "ecdsa"
digest = "1:a3fe3c2bb3354a9b8d349ef89fe74d981eaa530f4715843412d74a5e5d71bc7d"
name = "git.feneas.org/ganggo/httpsignatures"
packages = ["."]
pruneopts = ""
revision = "3ee9f28e5cf7db6ee603059334e87eacb08ddee9"
[[projects]]
digest = "1:9a88883f474d09f1da61894cd8115c7f33988d6941e4f6236324c777aaff8f2c"
name = "github.com/PuerkitoBio/goquery"
packages = ["."]
pruneopts = ""
revision = "dc2ec5c7ca4d9aae063b79b9f581dd3ea6afd2b2"
version = "v1.4.1"
[[projects]]
branch = "master"
digest = "1:75d218c4240566098f3ce15f899e383b979c9dbfa9f737d95365cdb8e6d27cb0"
name = "github.com/Zauberstuhl/go-xml"
packages = ["."]
pruneopts = ""
revision = "534ffa2167237347a37c82b47c552806709bdba0"
[[projects]]
digest = "1:14750a356d3d2763f9bd846d0c5c9fd0b1570756d59fbc1a80e7c1522dfb5aad"
name = "github.com/agtorre/gocolorize"
packages = ["."]
pruneopts = ""
revision = "f42b554bf7f006936130c9bb4f971afd2d87f671"
version = "v1.0.0"
[[projects]]
digest = "1:e3726ad6f38f710e84c8dcd0e830014de6eaeea81f28d91ae898afecc078479a"
name = "github.com/andybalholm/cascadia"
packages = ["."]
pruneopts = ""
revision = "901648c87902174f774fac311d7f176f8647bdaa"
version = "v1.0.0"
[[projects]]
digest = "1:9e84d9bff9fce602ebf6ab9bc5073bc3bb25085805ac771139287f763d2b1cbc"
name = "github.com/aws/aws-sdk-go"
packages = [
"aws",
......@@ -101,363 +120,518 @@
"private/protocol/restxml",
"private/protocol/xml/xmlutil",
"service/s3",
"service/sts"
"service/sts",
]
pruneopts = ""
revision = "71a2a92b0063297b055b6f5a014d441c142da2ce"
version = "v1.15.32"
[[projects]]
digest = "1:8722889ad027febfced94665914d1e7be8f1b703d31f2ef9461c59e4d40fe974"
name = "github.com/certifi/gocertifi"
packages = ["."]
pruneopts = ""
revision = "deb3ae2ef2610fde3330947281941c562861188b"
version = "2018.01.18"
[[projects]]
branch = "master"
digest = "1:c55f81378c21b10ec287c698784eed24939f84c8c6a8e1b9afaeaaed6e3aba83"
name = "github.com/dchest/captcha"
packages = ["."]
pruneopts = ""
revision = "6a29415a8364ec2971fdc62d9e415ed53fc20410"
[[projects]]
branch = "master"
digest = "1:7fdc54859cd901c25b9d8db964410a4e0d98fa0dca267fe4cf49c0eede5e06c2"
name = "github.com/denisenkom/go-mssqldb"
packages = [
".",
"internal/cp"
"internal/cp",
]
pruneopts = ""
revision = "1eb28afdf9b6e56cf673badd47545f844fe81103"
[[projects]]
digest = "1:55848e643a99a9dfceb19e090ce67111328fbb1780f34c62a0430994ff85fb90"
name = "github.com/fatih/structs"
packages = ["."]
pruneopts = ""
revision = "a720dfa8df582c51dee1b36feabb906bde1588bd"
version = "v1.0"
[[projects]]
branch = "master"
digest = "1:327785b91bae2995a06ddf1859751fc7559a27a6fe64d9b3022adc234b6b6168"
name = "github.com/getlantern/byteexec"
packages = ["."]
pruneopts = ""
revision = "4cfb26ec74f460fda433dc06fddfbad7ddee3072"
[[projects]]
branch = "master"
digest = "1:e3ec80ed1dcb646a17ff130c9166371ac036f15768beef2ccd542fe7447f0791"
name = "github.com/getlantern/context"
packages = ["."]
pruneopts = ""
revision = "624d99b1798d7c5375ea1d3ca4c5b04d58f7c775"
[[projects]]
branch = "master"
digest = "1:7669d23a22f5a5c85d39d0b83cb60160d7a12d9f85e0c9290e742ba7d02e73ee"
name = "github.com/getlantern/errors"
packages = ["."]
pruneopts = ""
revision = "e24b7f4ff7c70be59bbefca6b7695d68cda8b399"
[[projects]]
branch = "master"
digest = "1:99c1c515274e6c3ead7bf68dcc77f56131d0f937adeb6808ba86e0911adfdda7"
name = "github.com/getlantern/filepersist"
packages = ["."]
pruneopts = ""
revision = "c5f0cd24e7991579ba6f5f1bd20a1ad2c9f06cd4"
[[projects]]
branch = "master"
digest = "1:3070e816d12630a616508cd6d6ab0678656365081d1abaa4ee6904cc6767bb06"
name = "github.com/getlantern/golog"
packages = ["."]
pruneopts = ""
revision = "cca714f7feb5df8e455f409b549d384441ac4578"
[[projects]]
branch = "master"
digest = "1:f12c7103ba4c446c6822f331ada3e5f0c3626be111a115e92700cd2724bca9ed"
name = "github.com/getlantern/hex"
packages = ["."]
pruneopts = ""
revision = "083fba3033ad473db3dd31c9bb368473d37581a7"
[[projects]]
branch = "master"
digest = "1:7332481af948f234b2f10660ae290531d4cad08d1685af1bb5f80461d51d9740"
name = "github.com/getlantern/hidden"
packages = ["."]
pruneopts = ""
revision = "d52a649ab33af200943bb599898dbdcfdbc94cb7"
[[projects]]
branch = "master"
digest = "1:d215d9df4501ccb2ed42963d907d71b627f1de1a53fb70886186653125a3b148"
name = "github.com/getlantern/ops"
packages = ["."]
pruneopts = ""
revision = "37353306c90844c8e0591956f56611f46299d202"
[[projects]]
branch = "master"
digest = "1:b270a07ff13ee3ca9f21efab057287b52072dbac0c1f1a14a1e07db2e1bafde4"
name = "github.com/getsentry/raven-go"
packages = ["."]
pruneopts = ""
revision = "084a9de9eb0361fbd5ded14b55c84e5493a5d7f6"
[[projects]]
branch = "v2"
digest = "1:a601673ef8af35a7b815b312ed9c4213c3837ddc43e99a000ea2e855376b637c"
name = "github.com/go-gomail/gomail"
packages = ["."]
pruneopts = ""
revision = "81ebce5c23dfd25c6c67194b37d3dd3f338c98b1"
[[projects]]
digest = "1:cd5bab9c9e23ffa6858eaa79dc827fd84bc24bc00b0cfb0b14036e393da2b1fa"
name = "github.com/go-ini/ini"
packages = ["."]
pruneopts = ""
revision = "5cf292cae48347c2490ac1a58fe36735fb78df7e"
version = "v1.38.2"
[[projects]]
digest = "1:c07de423ca37dc2765396d6971599ab652a339538084b9b58c9f7fc533b28525"
name = "github.com/go-sql-driver/mysql"
packages = ["."]
pruneopts = ""
revision = "d523deb1b23d913de5bdada721a6071e71283618"
version = "v1.4.0"
[[projects]]
digest = "1:a01080d20c45c031c13f3828c56e58f4f51d926a482ad10cc0316225097eb7ea"
name = "github.com/go-stack/stack"
packages = ["."]
pruneopts = ""
revision = "2fee6af1a9795aafbe0253a0cfbdf668e1fb8a9a"
version = "v1.8.0"
[[projects]]
digest = "1:a4fcebba8c1b8ae25dd31f1cfa6c6ed5b1e5719ab2e9e1c18e8c98969ebde215"
name = "github.com/inconshreveable/log15"
packages = ["term"]
pruneopts = ""
revision = "67afb5ed74ec82fd7ac8f49d27c509ac6f991970"
version = "v2.14"
[[projects]]
branch = "master"
digest = "1:d9a7385b84d8187fd94e0357045c6fa1147ca94caa56fdd539336c7c102fc728"
name = "github.com/jinzhu/inflection"
packages = ["."]
pruneopts = ""
revision = "04140366298a54a039076d798123ffa108fff46c"
[[projects]]
digest = "1:6f49eae0c1e5dab1dafafee34b207aeb7a42303105960944828c2079b92fc88e"
name = "github.com/jmespath/go-jmespath"
packages = ["."]
pruneopts = ""
revision = "0b12d6b5"
[[projects]]
branch = "master"
digest = "1:59c43764c2b48ae6a123714a4187dd2015b25e972d269873ac7c07701fee47a6"
name = "github.com/jpillora/overseer"
packages = [
".",
"fetcher"
"fetcher",
]
pruneopts = ""
revision = "9891188db5a5bdae87416218253ac3a5ed4aed8a"
[[projects]]
name = "github.com/jteeuwen/go-bindata"
packages = ["."]
revision = "bbd0c6e271208dce66d8fda4bc536453cd27fc4a"
version = "v3.0.7"
[[projects]]
branch = "master"
digest = "1:2c5ad58492804c40bdaf5d92039b0cde8b5becd2b7feeb37d7d1cc36a8aa8dbe"
name = "github.com/kardianos/osext"
packages = ["."]
pruneopts = ""
revision = "ae77be60afb1dcacde03767a8c37337fad28ac14"
[[projects]]
branch = "master"
digest = "1:63e7368fcf6b54804076eaec26fd9cf0c4466166b272393db4b93102e1e962df"
name = "github.com/kballard/go-shellquote"
packages = ["."]
pruneopts = ""
revision = "95032a82bc518f77982ea72343cc1ade730072f0"
[[projects]]
digest = "1:434e3912172d6be4cb9d6210da2c78d24e33a9444c585153077e23eac17d4aa7"
name = "github.com/kevinburke/go-bindata"
packages = ["."]
pruneopts = ""
revision = "06af60a4461b70d84a2b173d92f9f425d78baf55"
version = "v3.11.0"
[[projects]]
digest = "1:4d0614a5d2e5e394368521b087428b2996ae95ebc4699afabc61adac9b7cec38"
name = "github.com/klauspost/compress"
packages = [
"flate",
"gzip",
"zlib"
"zlib",
]
pruneopts = ""
revision = "b939724e787a27c0005cabe3f78e7ed7987ac74f"
version = "v1.4.0"
[[projects]]
digest = "1:f0117357f14b0a625ddbbe25e23637291ac0276402fcfd25fc447422456364ce"
name = "github.com/klauspost/cpuid"
packages = ["."]
pruneopts = ""
revision = "ae7887de9fa5d2db4eaa8174a7eff2c1ac00f2da"
version = "v1.1"
[[projects]]
digest = "1:29145d7af4adafd72a79df5e41456ac9e232d5a28c1cd4dacf3ff008a217fc10"
name = "github.com/lib/pq"
packages = [
".",
"hstore",
"oid"
"oid",
]
pruneopts = ""
revision = "4ded0e9383f75c197b3a2aaa6d590ac52df6fd79"
version = "v1.0.0"
[[projects]]
digest = "1:9ea83adf8e96d6304f394d40436f2eb44c1dc3250d223b74088cc253a6cd0a1c"
name = "github.com/mattn/go-colorable"
packages = ["."]
pruneopts = ""
revision = "167de6bfdfba052fa6b2d3664c8f5272e23c9072"
version = "v0.0.9"
[[projects]]
digest = "1:3140e04675a6a91d2a20ea9d10bdadf6072085502e6def6768361260aee4b967"
name = "github.com/mattn/go-isatty"
packages = ["."]
pruneopts = ""
revision = "6ca4dbf54d38eea1a992b3c722a76a5d1c4cb25c"
version = "v0.0.4"
[[projects]]
digest = "1:bc03901fc8f0965ccba8bc453eae21a9b04f95999eab664c7de6dc7290f4e8f4"
name = "github.com/mattn/go-sqlite3"
packages = ["."]
pruneopts = ""
revision = "25ecb14adfc7543176f7d85291ec7dba82c6f7e4"
version = "v1.9.0"
[[projects]]
branch = "master"
digest = "1:50416da10e189bc201e122e20078fb8e680a439cbdd24aaece06c434b4415b60"
name = "github.com/mgutz/ansi"
packages = ["."]
pruneopts = ""
revision = "9520e82c474b0a04dd04f8a40959027271bab992"
[[projects]]
digest = "1:125f8ef0b7b53f42fe8d82b5462d803d56c2d357b8cea7796ed7cee0214008ec"
name = "github.com/microcosm-cc/bluemonday"
packages = ["."]
pruneopts = ""
revision = "82c7118e8ccf7403d4860175d97bb635e8e28239"
version = "v1.0.1"
[[projects]]
branch = "master"
digest = "1:44606d787e9fefb9198bc4ee34abcaffa5c0fdc6159698f1f1b5540ebb794c27"
name = "github.com/oxtoacart/bpool"
packages = ["."]
pruneopts = ""
revision = "4e1c5567d7c2dd59fa4c7c83d34c2f3528b025d6"
[[projects]]
digest = "1:4c0404dc03d974acd5fcd8b8d3ce687b13bd169db032b89275e8b9d77b98ce8c"
name = "github.com/patrickmn/go-cache"
packages = ["."]
pruneopts = ""
revision = "a3647f8e31d79543b2d0f0ae2fe5c379d72cedc0"
version = "v2.1.0"
[[projects]]
digest = "1:7365acd48986e205ccb8652cc746f09c8b7876030d53710ea6ef7d0bd0dcd7ca"
name = "github.com/pkg/errors"
packages = ["."]
pruneopts = ""
revision = "645ef00459ed84a119197bfb8d8205042c6df63d"
version = "v0.8.0"
[[projects]]
digest = "1:ee9264738ae76fa3aa36d110cdfad6a630f11431ee47624348ff3d83c94decb0"
name = "github.com/revel/cmd"
packages = [
"harness",
"revel"
"revel",
]
pruneopts = ""
revision = "97ec1422620f1a83cd13738708a109fe092364ca"
version = "v0.19.0"
[[projects]]
digest = "1:c57049f6c7e58197ec55f913cb4fcd90a5eb6ed68ff9f3dea5b05674705850e5"
name = "github.com/revel/config"
packages = ["."]
pruneopts = ""
revision = "662332b741dd464a886ab0901379c02b9bc5dc30"
version = "v0.19.0"
[[projects]]
digest = "1:5ba9a4d4a3ccebb8dd1f305808e08b97c13df1204c18fbf199013e647d61aa4c"
name = "github.com/revel/cron"
packages = ["."]
pruneopts = ""
revision = "5d31bd20c7c41898f91332a03f71069dde3e69aa"
version = "v0.19.0"
[[projects]]
branch = "master"
digest = "1:f45f196b397a7697584d6235b8fdc129c4ab3289ac83b1746983a957a191ae21"
name = "github.com/revel/log15"
packages = ["."]
pruneopts = ""
revision = "793412a67da6f8d15fede4c38f5c66272478cb8a"
[[projects]]
digest = "1:8640cccc233bb87bd48e377bf145dc0403c56159721a5be0c22f541f77e369b7"
name = "github.com/revel/modules"
packages = [
"jobs/app/controllers",
"jobs/app/jobs",
"static/app/controllers",
"testrunner/app",
"testrunner/app/controllers"
"testrunner/app/controllers",
]
pruneopts = ""
revision = "f97a4d0320f4ee755526333a0286f787a5bf6d8b"
version = "v0.19.0"
[[projects]]
branch = "master"
digest = "1:3873ef6b952e4e21908cb42873ece035021820914a73eabd10c54f14548223a5"
name = "github.com/revel/pathtree"
packages = ["."]
pruneopts = ""
revision = "41257a1839e945fce74afd070e02bab2ea2c776a"
[[projects]]
digest = "1:fa9a398481eb4be66315228b2bfc3da93830d5203edd05e7fac3eaa0475b2052"
name = "github.com/revel/revel"
packages = [
".",
"logger",
"testing"
"testing",
]
pruneopts = ""
revision = "248166bf840eab87a88d1c18309f8e174e8327ff"
version = "v0.19.1"
[[projects]]
branch = "master"
digest = "1:2ead4a440caa2cc17120b4ea6c97403eab5d1dc56aa3b731234b0984cd4cd96f"
name = "github.com/shaoshing/train"
packages = [
".",
"cmd",
"command",
"interpreter"
"interpreter",
]
pruneopts = ""
revision = "c76b6fe70b70a926afe20cf76df0e237e59f4655"
[[projects]]
branch = "master"
digest = "1:e7817b7ae6f73d6e5535ff624c5770228781ff16249ee72845ba58018df27e3b"
name = "github.com/xeonx/timeago"
packages = ["."]
pruneopts = ""
revision = "714e6695c468c22fb6431a914d8c5f9d19fa2367"
[[projects]]
branch = "master"
digest = "1:61a86f0be8b466d6e3fbdabb155aaa4006137cb5e3fd3b949329d103fa0ceb0f"
name = "golang.org/x/crypto"
packages = [
"bcrypt",
"blowfish",
"md4"
"md4",
]
pruneopts = ""
revision = "0e37d006457bf46f9e6692014ba72ef82c33022c"
[[projects]]
branch = "master"
digest = "1:782723d6fc27d202f1943219d68d58b3f6bcab6212c85294b1ddd8b586b1d356"
name = "golang.org/x/net"
packages = [
"html",
"html/atom",
"websocket"
"websocket",
]
pruneopts = ""
revision = "161cd47e91fd58ac17490ef4d742dc98bb4cf60e"
[[projects]]
branch = "master"
digest = "1:ed900376500543ca05f2a2383e1f541b4606f19cd22f34acb81b17a0b90c7f3e"
name = "golang.org/x/sys"
packages = ["unix"]
pruneopts = ""
revision = "d0be0721c37eeb5299f245a996a483160fc36940"
[[projects]]
digest = "1:c1771ca6060335f9768dff6558108bc5ef6c58506821ad43377ee23ff059e472"
name = "google.golang.org/appengine"
packages = ["cloudsql"]
pruneopts = ""
revision = "b1f26356af11148e710935ed1ac8a7f5702c7612"
version = "v1.1.0"
[[projects]]
digest = "1:89c6d5870e350ff77edf287589e6118467794047f628a3cf0b0b09b270b2ed17"
name = "gopkg.in/AlecAivazis/survey.v1"
packages = [
".",
"core",
"terminal"
"terminal",
]
pruneopts = ""
revision = "f30c5d1830c892f533140f29a1de89141dc217f5"
version = "v1.6.2"
[[projects]]
name = "gopkg.in/fsnotify/fsnotify.v1"
branch = "v3"
digest = "1:fa33d1dde8ce5b0b37c38c767c250a7684ecd385f9dbabe594ea8543e4d55807"
name = "gopkg.in/alexcesaro/quotedprintable.v3"
packages = ["."]
revision = "c2828203cd70a50dcccfb2761f8b1f8ceef9a8e9"
version = "v1.4.7"
pruneopts = ""
revision = "2caba252f4dc53eaf6b553000885530023f54623"
[[projects]]
name = "gopkg.in/ganggo/gorm.v2"
digest = "1:eb53021a8aa3f599d29c7102e65026242bdedce998a54837dc67f14b6a97c5fd"
name = "gopkg.in/fsnotify/fsnotify.v1"
packages = ["."]
revision = "4cacfdfb7921a87c774cbf21382714e07ca0b44f"
version = "v2.0"
pruneopts = ""
revision = "c2828203cd70a50dcccfb2761f8b1f8ceef9a8e9"
version = "v1.4.7"
[[projects]]
digest = "1:11c58e19ff7ce22740423bb933f1ddca3bf575def40d5ac3437ec12871b1648b"
name = "gopkg.in/natefinch/lumberjack.v2"
packages = ["."]
pruneopts = ""
revision = "a96e63847dc3c67d17befa69c303767e2f84e54f"
version = "v2.1"
[[projects]]
branch = "v0"
digest = "1:6aec919ba0088e4eb5affc6598fa9fcd9ec71d4127a19841176570a55b908384"
name = "gopkg.in/stack.v0"
packages = ["."]
pruneopts = ""
revision = "9b43fcefddd0178abdabf4d484ab0d695d0011db"
[solve-meta]
analyzer-name = "dep"
analyzer-version = 1
inputs-digest = "84a0b763da99a39b3502dcb0d1a79d9093c73b01ef7997e9319e561bfd56d285"
input-imports = [
"git.feneas.org/ganggo/api/app",
"git.feneas.org/ganggo/api/app/controllers",
"git.feneas.org/ganggo/api/app/helpers",
"git.feneas.org/ganggo/federation",
"git.feneas.org/ganggo/federation/helpers",
"git.feneas.org/ganggo/gorm",
"git.feneas.org/ganggo/gorm/dialects/mssql",
"git.feneas.org/ganggo/gorm/dialects/mysql",
"git.feneas.org/ganggo/gorm/dialects/postgres",
"git.feneas.org/ganggo/gorm/dialects/sqlite",
"github.com/dchest/captcha",
"github.com/fatih/structs",
"github.com/getlantern/byteexec",
"github.com/getsentry/raven-go",
"github.com/go-gomail/gomail",
"github.com/jpillora/overseer",
"github.com/jpillora/overseer/fetcher",
"github.com/kevinburke/go-bindata",
"github.com/microcosm-cc/bluemonday",
"github.com/patrickmn/go-cache",
"github.com/revel/cmd/revel",
"github.com/revel/config",
"github.com/revel/cron",
"github.com/revel/log15",
"github.com/revel/modules/jobs/app/controllers",
"github.com/revel/modules/jobs/app/jobs",
"github.com/revel/modules/static/app/controllers",
"github.com/revel/modules/testrunner/app",
"github.com/revel/modules/testrunner/app/controllers",
"github.com/revel/revel",
"github.com/revel/revel/testing",
"github.com/shaoshing/train",
"github.com/shaoshing/train/cmd",
"golang.org/x/crypto/bcrypt",
"gopkg.in/AlecAivazis/survey.v1",
]
solver-name = "gps-cdcl"
solver-version = 1
......@@ -53,3 +53,7 @@ required = [
[[constraint]]
name = "git.feneas.org/ganggo/gorm"
version = "1.9.3"
[[constraint]]
name = "github.com/go-gomail/gomail"
branch = "v2"
......@@ -26,32 +26,23 @@ func init() {
// redirect if logged-in
revel.InterceptFunc(redirectIfLoggedIn, revel.BEFORE, &App{})
// requires login
revel.InterceptFunc(requiresHTTPLogin, revel.BEFORE, &Setting{})
revel.InterceptFunc(requiresHTTPLogin, revel.BEFORE, &Search{})
revel.InterceptFunc(requiresLogin, revel.BEFORE, &Setting{})
revel.InterceptFunc(requiresLogin, revel.BEFORE, &Search{})
}
func redirectIfLoggedIn(c *revel.Controller) revel.Result {
result := requiresHTTPLogin(c)
result := requiresLogin(c)
if result == nil {
return c.Redirect(Stream.Index)