Compare commits
5 Commits
3e764e79d8
...
18af95c3ed
Author | SHA1 | Date | |
---|---|---|---|
18af95c3ed | |||
16ea648014 | |||
0a37073c8d | |||
f2f9781967 | |||
4f41ff341d |
@ -220,6 +220,13 @@ func checkAccountStatus(trackingId string) (string, error) {
|
|||||||
return status, nil
|
return status, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (fsd *fsData) quit(ctx context.Context, sym string, input []byte) (resource.Result, error) {
|
||||||
|
return resource.Result{
|
||||||
|
Content: "",
|
||||||
|
}, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
var (
|
var (
|
||||||
scriptDir = path.Join("services", "registration")
|
scriptDir = path.Join("services", "registration")
|
||||||
)
|
)
|
||||||
@ -238,6 +245,7 @@ func main() {
|
|||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
st := state.NewState(7)
|
st := state.NewState(7)
|
||||||
|
st.UseDebug()
|
||||||
rfs := resource.NewFsResource(scriptDir)
|
rfs := resource.NewFsResource(scriptDir)
|
||||||
ca := cache.NewCache()
|
ca := cache.NewCache()
|
||||||
cfg := engine.Config{
|
cfg := engine.Config{
|
||||||
@ -274,6 +282,7 @@ func main() {
|
|||||||
rfs.AddLocalFunc("create_account", fs.create_account)
|
rfs.AddLocalFunc("create_account", fs.create_account)
|
||||||
rfs.AddLocalFunc("check_identifier", fs.checkIdentifier)
|
rfs.AddLocalFunc("check_identifier", fs.checkIdentifier)
|
||||||
rfs.AddLocalFunc("check_account_status", fs.check_account_status)
|
rfs.AddLocalFunc("check_account_status", fs.check_account_status)
|
||||||
|
rfs.AddLocalFunc("quit",fs.quit)
|
||||||
|
|
||||||
cont, err := en.Init(ctx)
|
cont, err := en.Init(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
LOAD create_account 0
|
LOAD create_account 0
|
||||||
HALT
|
HALT
|
||||||
|
MOVE quit
|
||||||
|
2
services/registration/quit.vis
Normal file
2
services/registration/quit.vis
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
LOAD quit 0
|
||||||
|
HALT
|
@ -1,6 +1,6 @@
|
|||||||
CATCH select_language 8 0
|
CATCH select_language 8 0
|
||||||
CATCH terms 9 0
|
CATCH terms 9 0
|
||||||
|
LOAD check_account_status 0
|
||||||
CATCH account_pending 10 1
|
CATCH account_pending 10 1
|
||||||
CATCH profile 11 1
|
CATCH profile 11 1
|
||||||
LOAD check_account_status 0
|
|
||||||
HALT
|
HALT
|
||||||
|
Loading…
Reference in New Issue
Block a user