Skip to content

Commit

Permalink
Process parent validation on Database back-end.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Jul 27, 2024
1 parent 9bf7efd commit 337c4e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/forgetpass/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ func failOnUmatchedArgSize(size int, args []string) {
}

func main() {
if !proc.IsParentProcessPHP() {
os.Exit(0)
}

if len(os.Args) != 2 {
proc.ShowFailedResponse("Invalid argument arity.")
os.Exit(0)
Expand Down

0 comments on commit 337c4e6

Please sign in to comment.