|
@@ -6,6 +6,7 @@ import { rpcClient } from "src/utils/rpc";
|
|
import { ENV } from "src/utils/environment";
|
|
import { ENV } from "src/utils/environment";
|
|
|
|
|
|
export const get = async (req: ExpressRequest, res: ExpressResponse): Promise<void> => {
|
|
export const get = async (req: ExpressRequest, res: ExpressResponse): Promise<void> => {
|
|
|
|
+ eventLogger.info("Login attempt from %s; UA: %s", req.ip, req.get("user-agent"));
|
|
res.redirect(DiscordAPI.getAuthUrl({
|
|
res.redirect(DiscordAPI.getAuthUrl({
|
|
client_id: ENV.BOT_CLIENT_ID,
|
|
client_id: ENV.BOT_CLIENT_ID,
|
|
redirect_url: ENV.WEB_AUTH_URI,
|
|
redirect_url: ENV.WEB_AUTH_URI,
|