From 83ec9eefa6d2fd8e928c3788ef1ceaa562a733f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Mili=C4=87?= Date: Mon, 10 Aug 2020 11:08:39 +0200 Subject: [PATCH] feature/Add connector method checkExternalUserExists part 2 --- obp-api/pom.xml | 2 +- obp-api/src/main/scala/code/model/dataAccess/AuthUser.scala | 3 ++- obp-commons/pom.xml | 2 +- pom.xml | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/obp-api/pom.xml b/obp-api/pom.xml index 9dd2f2323..97313d66f 100644 --- a/obp-api/pom.xml +++ b/obp-api/pom.xml @@ -8,7 +8,7 @@ com.tesobe obp-parent ../pom.xml - 1.6.3 + 1.6.4 obp-api war diff --git a/obp-api/src/main/scala/code/model/dataAccess/AuthUser.scala b/obp-api/src/main/scala/code/model/dataAccess/AuthUser.scala index 22a0a3a89..2f771b6e0 100644 --- a/obp-api/src/main/scala/code/model/dataAccess/AuthUser.scala +++ b/obp-api/src/main/scala/code/model/dataAccess/AuthUser.scala @@ -123,7 +123,7 @@ class AuthUser extends MegaProtoUser[AuthUser] with MdcLoggable { override def validations = isEmpty(Helper.i18n("Please.enter.your.username")) _ :: valUnique(Helper.i18n("unique.username")) _ :: valUniqueExternally(Helper.i18n("unique.username")) _ :: - super.validations + super.validations.distinct override val fieldId = Some(Text("txtUsername")) /** @@ -137,6 +137,7 @@ class AuthUser extends MegaProtoUser[AuthUser] with MdcLoggable { case username if username == name => List(FieldError(this, Text(msg))) // issue 179 case _ => Nil } + case ParamFailure(message,_,_,_) if message.contains("NO DATA") => Nil case _ => List(FieldError(this, Text(msg))) // issue 179 } } else { diff --git a/obp-commons/pom.xml b/obp-commons/pom.xml index 01f90fb07..734ddfb78 100644 --- a/obp-commons/pom.xml +++ b/obp-commons/pom.xml @@ -7,7 +7,7 @@ com.tesobe obp-parent ../pom.xml - 1.6.3 + 1.6.4 obp-commons jar diff --git a/pom.xml b/pom.xml index d50991cdb..6020d79e4 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.tesobe obp-parent - 1.6.3 + 1.6.4 pom Open Bank Project API Parent 2011