summaryrefslogtreecommitdiff
path: root/src/reducer
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-11-16 14:37:29 +0100
committerChristian Grothoff <christian@grothoff.org>2021-11-16 14:37:33 +0100
commit157efff4973ed4e6837fabd5e7397cc6e578d9a0 (patch)
tree155e5d15c7d3c3a7d18d3688a1d9b0b33172443a /src/reducer
parent4448acec363052c16f7cf696fbe3eb84beb73a94 (diff)
downloadanastasis-157efff4973ed4e6837fabd5e7397cc6e578d9a0.tar.gz
anastasis-157efff4973ed4e6837fabd5e7397cc6e578d9a0.tar.bz2
anastasis-157efff4973ed4e6837fabd5e7397cc6e578d9a0.zip
-deny 1-FA (#7098)
Diffstat (limited to 'src/reducer')
-rw-r--r--src/reducer/anastasis_api_backup_redux.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/reducer/anastasis_api_backup_redux.c b/src/reducer/anastasis_api_backup_redux.c
index 17998ac..645970a 100644
--- a/src/reducer/anastasis_api_backup_redux.c
+++ b/src/reducer/anastasis_api_backup_redux.c
@@ -1738,6 +1738,11 @@ done_authentication (json_t *state,
"'authentication_methods' must not be empty");
return NULL;
case 1:
+ ANASTASIS_redux_fail_ (cb,
+ cb_cls,
+ TALER_EC_ANASTASIS_REDUCER_STATE_INVALID,
+ "Two factor authentication (2-FA) is required");
+ return NULL;
case 2:
pb.req_methods = pb.num_methods;
break;