Skip to content

Commit

Permalink
Update newAccount.src
Browse files Browse the repository at this point in the history
In an auxsvc script, the event comes as `struct{ type := "recv", value = ... }`
  • Loading branch information
KevinEady authored Sep 27, 2024
1 parent 55a8381 commit 6ecc893
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pkg/systems/accounts/auxsvc/newAccount.src
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ program AuxService(connection)
endif

var event := Wait_For_Event(5);
if ( event ) // New account to be made?
var username := event[1];
var password := event[2];
var cmd_lvl := event[3];
var expansion := event[4];
var email := event[5];
var admin_pw := event[6];
if ( event && event.type == "recv" ) // New account to be made?
var username := event.value[1];
var password := event.value[2];
var cmd_lvl := event.value[3];
var expansion := event.value[4];
var email := event.value[5];
var admin_pw := event.value[6];

if ( settings.AuxWebPassword )
if ( settings.AuxWebPassword != admin_pw )
Expand Down

0 comments on commit 6ecc893

Please sign in to comment.