描述: 我在使用 next-auth 在我的 nextjs 网站中实现自定义登录表单时面临。它继续重定向到“https://localhost:3000/api/auth/signin?csrf=true”
服务器端代码写入“pages/api/auth/”文件夹中的“[...nextauth.js]”文件中。
import NextAuth from 'next-auth';
import CredentialsProvider from 'next-auth/providers/credentials';
const providers = [
CredentialsProvider({
id: 'credentials',
name: 'credentials',
authorize: async (credentials) => {
console.log("AUTHORIZING...",credentials,req);
const res = await fetch(process.env.apiURL+"api/users/authenticate", {
method: 'POST',
body: JSON.stringify(credentials),
headers: { "Content-Type": "application/json" }
});
const user = await res.json();
if (res.ok && user) {
return user;
}
return null;
}
}),
];
const callbacks = {
async signIn({ user, account, profile, email, credentials }) {
console.log("IN CALLBACK HERE!!!"); …Run Code Online (Sandbox Code Playgroud) 我正在尝试在 Asp.net 2.0 (VB) 中创建一个典型的 Housie/Bingo 游戏票。但是,没有成功。工单包含 3 行 9 列。总共 27 个块,并且它必须只有 15 个应该被填入那些 27. 并且每列包含的值像第一列应该在 1-10 之间,第二列必须在 11-20 之间有随机值.. 有多少并不重要每栏填块.. 1个是必须的,没有一个列应该是空白的,9列都必须填,有的3个块都填满,有的1个总共15个块填满整个票。用随机数..
这里的伙计们是典型的家庭票规范.. 请帮我生成这样的票。我试过,但没有那么成功,我得到整列空白和验证列.. 需要额外的系统负载。请帮我找到制作方法。