ip logging for error reporting
This commit is contained in:
@@ -17,7 +17,7 @@ import { JSONPath as jsonpath } from "jsonpath-plus";
|
||||
import { reduxForm, formValueSelector } from "redux-form";
|
||||
|
||||
import RegisterForm from "../../components/account/registerform";
|
||||
import { dehashString, hashAPIPath } from "../../actions";
|
||||
import { dehashString, hashAPIPath, getIP } from "../../actions";
|
||||
import { getSession, useSession, signIn, signOut } from "next-auth/react";
|
||||
|
||||
const Home = (props) => {
|
||||
@@ -159,6 +159,7 @@ const Home = (props) => {
|
||||
export const getServerSideProps = wrapper.getServerSideProps(
|
||||
(store) => async (ctx) => {
|
||||
const { query, req, res } = ctx;
|
||||
getIP(req);
|
||||
|
||||
let thisSession = await getSession(ctx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user