generated from ITwrxOrg/EZ-Bkup
15 lines
456 B
Nim
15 lines
456 B
Nim
#[Copyright 2025 ITwrx.
|
|
This file is part of Forget-Me-Not.
|
|
Forget-Me-Not is released under the GNU Affero General Public License 3.0.
|
|
See COPYING or <https://www.gnu.org/licenses/> for details.]#
|
|
|
|
import nimword, "../models/user.nim"
|
|
|
|
proc createNewUser*() =
|
|
{.gcsafe.}:
|
|
let email = ""
|
|
let passwordString = ""
|
|
let iterations = 3
|
|
let encodedHash: string = hashEncodePassword(passwordString, iterations)
|
|
createUser(email, encodedHash)
|