login form
This commit is contained in:
+6
-1
@@ -1,13 +1,18 @@
|
||||
* Battling
|
||||
* Logins ✔️
|
||||
* Cryp Ownership
|
||||
* Cryp Ownership ✔
|
||||
* Matchmaking
|
||||
* Lobbies
|
||||
* Create
|
||||
* Join
|
||||
* Resolve
|
||||
* Stats
|
||||
* Scrabble grid
|
||||
* Items
|
||||
* Grid reroll
|
||||
* Colour scheme
|
||||
* Missions
|
||||
* Bosses
|
||||
|
||||
* Cryp Generation
|
||||
*
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use uuid::Uuid;
|
||||
use bcrypt::{DEFAULT_COST, hash, verify};
|
||||
use bcrypt::{hash, verify};
|
||||
use rand::{thread_rng, Rng};
|
||||
use rand::distributions::Alphanumeric;
|
||||
use std::iter;
|
||||
@@ -61,7 +61,7 @@ pub fn create(params: AccountCreateParams, db: Db) -> Result<RpcResult, Error> {
|
||||
if params.password.len() < PASSWORD_MIN_LEN {
|
||||
return Err(err_msg("password must be at least 12 characters"));
|
||||
}
|
||||
let password = hash(¶ms.password, DEFAULT_COST)?;
|
||||
let password = hash(¶ms.password, 4)?;
|
||||
|
||||
let mut rng = thread_rng();
|
||||
let token: String = iter::repeat(())
|
||||
|
||||
Reference in New Issue
Block a user