|
@ -15,6 +15,7 @@ use libpso::{utf8_to_array, utf8_to_utf16_array}; |
|
|
|
|
|
|
|
|
pub async fn new_user_character<EG: EntityGateway>(entity_gateway: &mut EG, username: &str, password: &str) -> (UserAccountEntity, CharacterEntity) {
|
|
|
pub async fn new_user_character<EG: EntityGateway>(entity_gateway: &mut EG, username: &str, password: &str) -> (UserAccountEntity, CharacterEntity) {
|
|
|
let new_user = NewUserAccountEntity {
|
|
|
let new_user = NewUserAccountEntity {
|
|
|
|
|
|
email: format!("{}@pso.com", username),
|
|
|
username: username.into(),
|
|
|
username: username.into(),
|
|
|
password: bcrypt::hash(password, 5).unwrap(),
|
|
|
password: bcrypt::hash(password, 5).unwrap(),
|
|
|
guildcard: 1,
|
|
|
guildcard: 1,
|
|
|