From 10c917b6da60727828b5b223a6e301179230620e Mon Sep 17 00:00:00 2001 From: Carlosokumu Date: Fri, 13 Sep 2024 21:49:07 +0300 Subject: [PATCH] add pin reset nodes --- services/registration/confirm_pin_change | 1 + services/registration/confirm_pin_change.vis | 7 +++++++ services/registration/invalid_pin | 1 + services/registration/invalid_pin.vis | 4 ++++ services/registration/new_pin.vis | 4 ++++ services/registration/pin_reset_success | 1 + services/registration/pin_reset_success.vis | 6 ++++++ 7 files changed, 24 insertions(+) create mode 100644 services/registration/confirm_pin_change create mode 100644 services/registration/confirm_pin_change.vis create mode 100644 services/registration/invalid_pin create mode 100644 services/registration/invalid_pin.vis create mode 100644 services/registration/pin_reset_success create mode 100644 services/registration/pin_reset_success.vis diff --git a/services/registration/confirm_pin_change b/services/registration/confirm_pin_change new file mode 100644 index 0000000..398a827 --- /dev/null +++ b/services/registration/confirm_pin_change @@ -0,0 +1 @@ +Confirm your new PIN: diff --git a/services/registration/confirm_pin_change.vis b/services/registration/confirm_pin_change.vis new file mode 100644 index 0000000..bf61ba9 --- /dev/null +++ b/services/registration/confirm_pin_change.vis @@ -0,0 +1,7 @@ +LOAD verify_pin 0 +MOUT back 0 +HALT +RELOAD verify_pin +CATCH create_pin_mismatch flag_pin_mismatch 1 +MOVE pin_reset_success +INCMP _ 0 diff --git a/services/registration/invalid_pin b/services/registration/invalid_pin new file mode 100644 index 0000000..9dbcceb --- /dev/null +++ b/services/registration/invalid_pin @@ -0,0 +1 @@ +The PIN you entered is invalid.The PIN must be different from your current PIN.For help call +254757628885 diff --git a/services/registration/invalid_pin.vis b/services/registration/invalid_pin.vis new file mode 100644 index 0000000..5b64988 --- /dev/null +++ b/services/registration/invalid_pin.vis @@ -0,0 +1,4 @@ +MOUT back 0 +HALT +INCMP _ 0 + diff --git a/services/registration/new_pin.vis b/services/registration/new_pin.vis index 3790a08..d0364fe 100644 --- a/services/registration/new_pin.vis +++ b/services/registration/new_pin.vis @@ -1,3 +1,7 @@ +LOAD save_temporary_pin 0 MOUT back 0 HALT +RELOAD save_temporary_pin +CATCH invalid_pin flag_incorrect_pin 1 INCMP _ 0 +MOVE confirm_pin_change diff --git a/services/registration/pin_reset_success b/services/registration/pin_reset_success new file mode 100644 index 0000000..47a0fcb --- /dev/null +++ b/services/registration/pin_reset_success @@ -0,0 +1 @@ +Your PIN change request has been successful \ No newline at end of file diff --git a/services/registration/pin_reset_success.vis b/services/registration/pin_reset_success.vis new file mode 100644 index 0000000..e188be6 --- /dev/null +++ b/services/registration/pin_reset_success.vis @@ -0,0 +1,6 @@ +LOAD confirm_pin_change 0 +MOUT back 0 +MOUT quit 9 +HALT +INCMP _ 0 +INCMP quit 9