| 12345678910111213141516171819202122 |
- const config = require("../config.js")
- ,slackManager = require("../src/slackManager.js").SlackManager
- ,templates = require('./_templates.js');
- module.exports.exec = function() {
- var slackUri = "https://slack.com/oauth/authorize"
- +"?client_id=" +config.login.slack.clientId
- +"&scope=identity.basic"
- +"&redirect_uri=" +config.rootUrl;
- return {
- status: 200
- ,body:
- templates.header(["login.css"])
- +`<a href="${slackUri}">Slack login</a>`
- +templates.footer()
- };
- };
- module.exports.needLogin = false;
|