mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-05-15 06:26:07 +00:00
22 lines
485 B
Zig
22 lines
485 B
Zig
const std = @import("std");
|
|
|
|
const jetzig = @import("jetzig");
|
|
|
|
pub fn run(repo: anytype) !void {
|
|
try repo.insert(
|
|
.User,
|
|
.{
|
|
.email = "iguana@jetzig.dev",
|
|
.password_hash = try jetzig.auth.hashPassword(repo.allocator, "password"),
|
|
},
|
|
);
|
|
|
|
try repo.insert(
|
|
.User,
|
|
.{
|
|
.email = "admin@jetzig.dev",
|
|
.password_hash = try jetzig.auth.hashPassword(repo.allocator, "admin"),
|
|
},
|
|
);
|
|
}
|