Add functionality for generating random NEX passwords

This commit is contained in:
red binder 2026-03-29 14:44:15 +02:00
commit 15129e8df3
5 changed files with 41 additions and 21 deletions

View file

@ -77,9 +77,9 @@ impl grpc::account_server::Account for AccountService {
.map_err(|_| Status::invalid_argument("No NEX account found"))?
.nex_password;
let password_padded = format!("{:a>16}", password);
// let password_padded = format!("{:a>16}", password);
Ok(Response::new(GetNexPasswordResponse { password: password_padded }))
Ok(Response::new(GetNexPasswordResponse { password }))
}
async fn update_pnid_permissions(
&self,