diff --git a/.gitignore b/.gitignore
index 49c74b4ba..4e8dc6fcf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,4 +12,4 @@
target
src/main/resources/
src/test/resources/
-*.iml
\ No newline at end of file
+*.iml
diff --git a/NOTICE b/NOTICE
index d05773491..b5ad17f0a 100644
--- a/NOTICE
+++ b/NOTICE
@@ -1,5 +1,5 @@
Open Bank Project - Transparency / Social Finance Web Application
-Copyright (C) 2011, 2012, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/resources/props/sample.props.template b/src/main/resources/props/sample.props.template
index 1d71cd22d..1e882ffc8 100644
--- a/src/main/resources/props/sample.props.template
+++ b/src/main/resources/props/sample.props.template
@@ -1,22 +1,23 @@
#this is a sample props file you should edit and rename
#see https://www.assembla.com/wiki/show/liftweb/Properties for all the naming options, or just use "default.props" in this same folder
+### OBP-API configuration
+
+
+### base configuration
+
#which data connector to use
-
-#connector=mongodb
-#connector=rest
-#connector=...
connector=mapped
+#connector=mongodb
+#connector=...
-#if connector is mapped, set a database backend
-db.driver=org.postgresql.Driver
-#you can also use a no config needed h2 database by setting db.driver=org.h2.Driver and not including db.url
-
+#you can use a no config needed h2 database by setting db.driver=org.h2.Driver and not including db.url
+#db.driver=org.postgresql.Driver
+#db.driver=org.h2.Driver
#be sure to create your database and update the line below!
db.url=jdbc:postgresql://localhost:5432/dbname?user=dbusername&password=thepassword
-
-
+#our own remotely accessible URL
#this is needed for oauth to work. it's important to access the api over this url, e.g.
# if this is 127.0.0.1 don't use localhost to access it.
# (this needs to be an URL)
@@ -25,9 +26,10 @@ hostname=http://127.0.0.1:8080
#this is only useful for running the api locally via RunWebApp
#if you use it, make sure this matches your hostname port!
#if you want to change the port when running via the command line, use "mvn -Djetty.port=8089 jetty:run" instead
-dev.port=8089
+dev.port=8080
-#mail server config: not need in dev mode, but important for production
+#sending mail out
+#not need in dev mode, but important for production
mail.api.consumer.registered.sender.address=no-reply@example.com
mail.api.consumer.registered.notification.addresses=you@example.com
mail.smtp.host=127.0.0.1
@@ -36,15 +38,9 @@ mail.smtp.port=25
#oauth token timeout
token_expiration_weeks=4
-#secret key that allows access to api calls to get info about oauth tokens. You should change this
-#to your own secret key
-BankMockKey=change_me
-#secret key that allows access to the "add cash transactions" API. You should change this to your own secret key
-cashApplicationKey=change_me
-#secret key that allows access to the "add transactions" API. You should change this to your own secret key
-importer_secret=change_me
+### sandbox
#set this to true if you want to allow users to create sandbox test accounts with a starting balance
allow_sandbox_account_creation=true
@@ -55,16 +51,22 @@ allow_sandbox_data_import=true
#secret key that allows access to the "data import" api. You should change this to your own secret key
sandbox_data_import_secret=change_me
-### features
+
+
+### api features
+
+#secret key that allows access to the "add cash transactions" api. You should change this to your own secret key
+cashApplicationKey=change_me
#set this to false if you don't want the api payments call to work (starting with v1.2.1)
payments_enabled=true
#transaction requests are replacing simple payments starting from 1.4.0
-#(and set a connector per feature. Will be expanded to several other features as well)
transactionRequests_enabled=true
transactionRequests_connector=mapped
+
+
### management modules
#rabbitMQ settings (used to communicate with HBCI project)
@@ -72,11 +74,32 @@ connection.host=localhost
connection.user=theusername
connection.password=thepassword
-#set this to true if you want to have the api to send a message to the hbci project to refresh transactions for an account
-messageQueue.updateBankAccountsTransaction=false
+#secret key that allows access to the "add transactions" api. You should change this to your own secret key
+importer_secret=change_me
+
+#set this to true if you want to have the api send a message to the hbci project to refresh transactions for an account
+messageQueue.updateBankAccountsTransaction=true
+
+#the minimum time between updates in hours
+messageQueue.updateTransactionsInterval=1
#set this to true if you want to have the api listen for "create account" messages from the hbci project
messageQueue.createBankAccounts=true
-#set this to true if you want to allow users to delete accounts
-allow_account_deletion=true
\ No newline at end of file
+#set this to true if you want to allow users to delete accounts (local ones like HBCI connected)
+allow_account_deletion=true
+
+#secret key that allows access to api calls to get info about oauth tokens. You should change this
+#to your own secret key
+BankMockKey=change_me
+
+
+
+### web interface configuration
+webui_header_theme_color = #53C4EF
+webui_header_logo_left_url = /media/images/logo.png
+webui_header_logo_right_url =
+webui_index_page_about_section_background_image_url = /media/images/about-background.jpg
+webui_index_page_about_section_text =
\
+ Welcome to the API Sandbox powered by the Open Bank Project! \
+
\ No newline at end of file
diff --git a/src/main/scala/bootstrap/liftweb/Boot.scala b/src/main/scala/bootstrap/liftweb/Boot.scala
index bd052e9b5..5658211a4 100755
--- a/src/main/scala/bootstrap/liftweb/Boot.scala
+++ b/src/main/scala/bootstrap/liftweb/Boot.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/api/OBPAPI1.0.scala b/src/main/scala/code/api/OBPAPI1.0.scala
index 8a7d40d58..9ef47db78 100644
--- a/src/main/scala/code/api/OBPAPI1.0.scala
+++ b/src/main/scala/code/api/OBPAPI1.0.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/api/OBPAPI1.1.scala b/src/main/scala/code/api/OBPAPI1.1.scala
index 7ec80ed9f..7f9f76553 100644
--- a/src/main/scala/code/api/OBPAPI1.1.scala
+++ b/src/main/scala/code/api/OBPAPI1.1.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/api/OBPRestHelper.scala b/src/main/scala/code/api/OBPRestHelper.scala
index ab1fd0ef7..fe22f121a 100644
--- a/src/main/scala/code/api/OBPRestHelper.scala
+++ b/src/main/scala/code/api/OBPRestHelper.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/api/bankmock.scala b/src/main/scala/code/api/bankmock.scala
index e5b63752c..5771ac922 100644
--- a/src/main/scala/code/api/bankmock.scala
+++ b/src/main/scala/code/api/bankmock.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/api/metrics.scala b/src/main/scala/code/api/metrics.scala
index e0a13a3c2..b373e23d9 100644
--- a/src/main/scala/code/api/metrics.scala
+++ b/src/main/scala/code/api/metrics.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/api/util/APIUtil.scala b/src/main/scala/code/api/util/APIUtil.scala
index 1b701a62a..b8a895ce8 100644
--- a/src/main/scala/code/api/util/APIUtil.scala
+++ b/src/main/scala/code/api/util/APIUtil.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/api/v1_2/JSONFactory1.2.scala b/src/main/scala/code/api/v1_2/JSONFactory1.2.scala
index 7307ef5ff..6dd55b819 100644
--- a/src/main/scala/code/api/v1_2/JSONFactory1.2.scala
+++ b/src/main/scala/code/api/v1_2/JSONFactory1.2.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/api/v1_2/OBPAPI1.2.scala b/src/main/scala/code/api/v1_2/OBPAPI1.2.scala
index 3b1060438..06108927d 100644
--- a/src/main/scala/code/api/v1_2/OBPAPI1.2.scala
+++ b/src/main/scala/code/api/v1_2/OBPAPI1.2.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/api/v1_2_1/JSONFactory1.2.1.scala b/src/main/scala/code/api/v1_2_1/JSONFactory1.2.1.scala
index 6801dfa77..c6583f154 100644
--- a/src/main/scala/code/api/v1_2_1/JSONFactory1.2.1.scala
+++ b/src/main/scala/code/api/v1_2_1/JSONFactory1.2.1.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/api/v1_2_1/OBPAPI1.2.1.scala b/src/main/scala/code/api/v1_2_1/OBPAPI1.2.1.scala
index e3a3ac489..283865639 100644
--- a/src/main/scala/code/api/v1_2_1/OBPAPI1.2.1.scala
+++ b/src/main/scala/code/api/v1_2_1/OBPAPI1.2.1.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/bankconnectors/Connector.scala b/src/main/scala/code/bankconnectors/Connector.scala
index 14e2d8f4a..61457f23d 100644
--- a/src/main/scala/code/bankconnectors/Connector.scala
+++ b/src/main/scala/code/bankconnectors/Connector.scala
@@ -1,13 +1,10 @@
package code.bankconnectors
import code.management.ImporterAPI.ImporterTransaction
-import code.model.dataAccess.MappedBankAccount
import code.tesobe.CashTransaction
import code.transactionrequests.TransactionRequests
import code.transactionrequests.TransactionRequests.{TransactionRequestChallenge, TransactionRequest, TransactionRequestId, TransactionRequestBody}
import code.util.Helper._
-import com.javafx.tools.doclets.formats.html.markup.DocType
-import com.tesobe.model.CreateBankAccount
import net.liftweb.common.{Full, Empty, Box}
import code.model._
import net.liftweb.util.Helpers._
diff --git a/src/main/scala/code/metrics/MongoAPIMetric.scala b/src/main/scala/code/metrics/MongoAPIMetric.scala
index eae5d93b0..ae2f327dd 100644
--- a/src/main/scala/code/metrics/MongoAPIMetric.scala
+++ b/src/main/scala/code/metrics/MongoAPIMetric.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/model/BankingData.scala b/src/main/scala/code/model/BankingData.scala
index 0c8dcf58e..11ca14256 100644
--- a/src/main/scala/code/model/BankingData.scala
+++ b/src/main/scala/code/model/BankingData.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/model/Metadata.scala b/src/main/scala/code/model/Metadata.scala
index b0c88feae..50f94986a 100644
--- a/src/main/scala/code/model/Metadata.scala
+++ b/src/main/scala/code/model/Metadata.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/model/ModeratedBankingData.scala b/src/main/scala/code/model/ModeratedBankingData.scala
index 5b323104c..0cd599b2a 100644
--- a/src/main/scala/code/model/ModeratedBankingData.scala
+++ b/src/main/scala/code/model/ModeratedBankingData.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/model/OAuth.scala b/src/main/scala/code/model/OAuth.scala
index 1552d99f2..814b1d5af 100644
--- a/src/main/scala/code/model/OAuth.scala
+++ b/src/main/scala/code/model/OAuth.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/model/User.scala b/src/main/scala/code/model/User.scala
index 8374ac5f9..777d62c2c 100644
--- a/src/main/scala/code/model/User.scala
+++ b/src/main/scala/code/model/User.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/model/View.scala b/src/main/scala/code/model/View.scala
index cd5ed6ac0..b43567f76 100644
--- a/src/main/scala/code/model/View.scala
+++ b/src/main/scala/code/model/View.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/model/dataAccess/APIUser.scala b/src/main/scala/code/model/dataAccess/APIUser.scala
index f4a2c3b04..b2f99f5d5 100644
--- a/src/main/scala/code/model/dataAccess/APIUser.scala
+++ b/src/main/scala/code/model/dataAccess/APIUser.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/model/dataAccess/Account.scala b/src/main/scala/code/model/dataAccess/Account.scala
index f5411fb1d..f41381ef9 100644
--- a/src/main/scala/code/model/dataAccess/Account.scala
+++ b/src/main/scala/code/model/dataAccess/Account.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/model/dataAccess/Admin.scala b/src/main/scala/code/model/dataAccess/Admin.scala
index fce39e02b..682648294 100644
--- a/src/main/scala/code/model/dataAccess/Admin.scala
+++ b/src/main/scala/code/model/dataAccess/Admin.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/model/dataAccess/BankAccountCreationDispatcher.scala b/src/main/scala/code/model/dataAccess/BankAccountCreationDispatcher.scala
index 8b0e0a53e..d9856261c 100644
--- a/src/main/scala/code/model/dataAccess/BankAccountCreationDispatcher.scala
+++ b/src/main/scala/code/model/dataAccess/BankAccountCreationDispatcher.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/model/dataAccess/MongoConfig.scala b/src/main/scala/code/model/dataAccess/MongoConfig.scala
index dd66201d3..48cde8daf 100644
--- a/src/main/scala/code/model/dataAccess/MongoConfig.scala
+++ b/src/main/scala/code/model/dataAccess/MongoConfig.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/model/dataAccess/OBPTransaction.scala b/src/main/scala/code/model/dataAccess/OBPTransaction.scala
index 622051e44..12dfec31e 100644
--- a/src/main/scala/code/model/dataAccess/OBPTransaction.scala
+++ b/src/main/scala/code/model/dataAccess/OBPTransaction.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/model/dataAccess/OBPUser.scala b/src/main/scala/code/model/dataAccess/OBPUser.scala
index a608edc3a..7abdc1fac 100755
--- a/src/main/scala/code/model/dataAccess/OBPUser.scala
+++ b/src/main/scala/code/model/dataAccess/OBPUser.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
@@ -36,12 +36,7 @@ import net.liftweb.util.Mailer.{BCC, To, Subject, From}
import net.liftweb.util._
import net.liftweb.common._
import scala.xml.NodeSeq
-import net.liftweb.http.{SessionVar,Templates}
-import code.model.User
-import net.liftweb.json.JsonDSL._
-import net.liftweb.http.SHtml
-import net.liftweb.http.S
-import com.mongodb.DBObject
+import net.liftweb.http.{SHtml, SessionVar, Templates, S}
import net.liftweb.http.js.JsCmds.FocusOnLoad
@@ -116,24 +111,25 @@ import net.liftweb.util.Helpers._
override def skipEmailValidation = true
override def loginXhtml = {
- import net.liftweb.http.js.JsCmds.Noop
val loginXml = Templates(List("templates-hidden","_login")).map({
"form [action]" #> {S.uri} &
- "#loginText * " #> {S.??("log.in")} &
- "#emailAddressText * " #> {S.??("email.address")} &
- "#passwordText * " #> {S.??("password")} &
+ "#loginText * " #> {S.?("log.in")} &
+ "#emailAddressText * " #> {S.?("email.address")} &
+ "#passwordText * " #> {S.?("password")} &
"#recoverPasswordLink * " #> {
"a [href]" #> {lostPasswordPath.mkString("/", "/", "")} &
- "a *" #> {S.??("recover.password")}
+ "a *" #> {S.?("recover.password")}
} &
"#SignUpLink * " #> {
"a [href]" #> {OBPUser.signUpPath.foldLeft("")(_ + "/" + _)} &
- "a *" #> {S.??("sign.up")}
+ "a *" #> {S.?("sign.up")}
}
})
- SHtml.span(loginXml getOrElse NodeSeq.Empty,Noop)
+
+
{loginXml getOrElse NodeSeq.Empty}
}
+
/**
* Overriden to use the hostname set in the props file
*/
@@ -161,6 +157,35 @@ import net.liftweb.util.Helpers._
}
}
+ override def lostPasswordXhtml = {
+
}
//overridden to allow a redirection if login fails
@@ -232,6 +262,7 @@ import net.liftweb.util.Helpers._
case _ => {
info("failed: " + failedLoginRedirect.get)
failedLoginRedirect.get.foreach(S.redirectTo(_))
+ S.error("login", S.?("Invalid Username or Password"))
}
}
}
@@ -239,7 +270,7 @@ import net.liftweb.util.Helpers._
bind("user", loginXhtml,
"email" -> (FocusOnLoad()),
"password" -> (),
- "submit" -> loginSubmitButton(S.??("log.in")))
+ "submit" -> loginSubmitButton(S.?("log.in")))
}
//overridden to allow redirect to loginRedirect after signup. This is mostly to allow
@@ -268,7 +299,9 @@ import net.liftweb.util.Helpers._
S.redirectTo(redir)
})
- case xs => S.error(xs) ; signupFunc(Full(innerSignup _))
+ case xs =>
+ xs.foreach(e => S.error("signup", e.msg))
+ signupFunc(Full(innerSignup _))
}
}
@@ -278,6 +311,4 @@ import net.liftweb.util.Helpers._
innerSignup
}
-
-
}
\ No newline at end of file
diff --git a/src/main/scala/code/model/dataAccess/UpdatesRequestSender.scala b/src/main/scala/code/model/dataAccess/UpdatesRequestSender.scala
index bbcfedb7b..b32ba745d 100644
--- a/src/main/scala/code/model/dataAccess/UpdatesRequestSender.scala
+++ b/src/main/scala/code/model/dataAccess/UpdatesRequestSender.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/model/dataAccess/view.scala b/src/main/scala/code/model/dataAccess/view.scala
index 0cd4cac45..79795cb20 100644
--- a/src/main/scala/code/model/dataAccess/view.scala
+++ b/src/main/scala/code/model/dataAccess/view.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/snippet/ConsumerRegistration.scala b/src/main/scala/code/snippet/ConsumerRegistration.scala
index 66c358f1a..5ed39fede 100644
--- a/src/main/scala/code/snippet/ConsumerRegistration.scala
+++ b/src/main/scala/code/snippet/ConsumerRegistration.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
@@ -44,7 +44,7 @@ import code.util.Helper.NOOP_SELECTOR
class ConsumerRegistration extends Loggable {
//TODO: for security reasons this snippet and the template must be re-factored
- //to use the lift build in form function(SHtml._) so we can hide to what
+ //to use the lift built-in form function(SHtml._) so we can hide to what
//the input fields are mapped to in the server side !!
private object nameVar extends RequestVar("")
diff --git a/src/main/scala/code/snippet/Login.scala b/src/main/scala/code/snippet/Login.scala
index 64f9cd826..b58700eff 100644
--- a/src/main/scala/code/snippet/Login.scala
+++ b/src/main/scala/code/snippet/Login.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
@@ -28,7 +28,7 @@ Berlin 13359, Germany
Everett Sochowski : everett AT tesobe DOT com
Ayoub Benali: ayoub AT tesobe DOT com
- */
+*/
package code.snippet
diff --git a/src/main/scala/code/snippet/Nav.scala b/src/main/scala/code/snippet/Nav.scala
index 5f90c581a..8db0edaa6 100644
--- a/src/main/scala/code/snippet/Nav.scala
+++ b/src/main/scala/code/snippet/Nav.scala
@@ -1,6 +1,6 @@
/**
Open Bank Project - API
-Copyright (C) 2011, 2013, TESOBE / Music Pictures Ltd
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/src/main/scala/code/snippet/WebUI.scala b/src/main/scala/code/snippet/WebUI.scala
new file mode 100644
index 000000000..a6845838e
--- /dev/null
+++ b/src/main/scala/code/snippet/WebUI.scala
@@ -0,0 +1,53 @@
+/**
+Open Bank Project - API
+Copyright (C) 2011-2015, TESOBE / Music Pictures Ltd
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see .
+
+Email: contact@tesobe.com
+TESOBE / Music Pictures Ltd
+Osloerstrasse 16/17
+Berlin 13359, Germany
+
+ This product includes software developed at
+ TESOBE (http://www.tesobe.com/)
+ by
+ Simon Redfern : simon AT tesobe DOT com
+ Stefan Bethge : stefan AT tesobe DOT com
+ Everett Sochowski : everett AT tesobe DOT com
+ Ayoub Benali: ayoub AT tesobe DOT com
+
+*/
+
+package code.snippet
+
+import net.liftweb.util.Helpers._
+import net.liftweb.util.{CssSel, Props}
+
+import scala.xml.NodeSeq
+
+class WebUI {
+ def headerLogoLeft = {
+ "img [src]" #> Props.get("webui_header_logo_left_url", "")
+ }
+ def headerLogoRight: CssSel = {
+ "img [src]" #> Props.get("webui_header_logo_right_url", "")
+ }
+ def aboutBackground: CssSel = {
+ "#main-about [style]" #> ("background-image: url(" + Props.get("webui_index_page_about_section_background_image_url", "") + ");")
+ }
+ def aboutText: CssSel = {
+ ".about-text *" #> scala.xml.Unparsed(Props.get("webui_index_page_about_section_text", ""))
+ }
+}
diff --git a/src/main/webapp/consumer-registration.html b/src/main/webapp/consumer-registration.html
index 546fe6e55..fe33e50e4 100644
--- a/src/main/webapp/consumer-registration.html
+++ b/src/main/webapp/consumer-registration.html
@@ -1,6 +1,6 @@
-
-
-
Register your application
+
+
+
Register your application
-
-
-
-
-
-
-
- Thank you for registering to use the Open Bank API. Here is your developer information. Please save it in a secure location.
-
-
-
-
- Application Type
-
-
- web
-
-
-
-
- Application Name
-
-
- ABC
-
-
-
-
- User authentication URL
-
-
- ABC
-
-
-
-
- Developer Email
-
-
- abc@example.com
-
-
-
-
- App Description
-
-
- ABCDEF
-
-
-
-
- Consumer Key
-
-
- 23432432432432
-
-
-
-
- Consumer Secret
-
-
- 3334543543543
-
-
-
-
-
+
+
+
+
+
+
+
+ Thank you for registering to use the Open Bank API. Here is your developer information. Please save it in a secure location.
+
+
+
+
+ Application Type
+
+
+ web
+
+
+
+
+ Application Name
+
+
+ ABC
+
+
+
+
+
+ Developer Email
+
+
+ abc@example.com
+
+
+
+
+ App Description
+
+
+ ABCDEF
+
+
+
+
+ Consumer Key
+
+
+ 23432432432432
+
+
+
+
+ Consumer Secret
+
+
+ 3334543543543
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/webapp/create-sandbox-account.html b/src/main/webapp/create-sandbox-account.html
index d0f6649c3..39348f72e 100644
--- a/src/main/webapp/create-sandbox-account.html
+++ b/src/main/webapp/create-sandbox-account.html
@@ -1,6 +1,6 @@
-
- This form is designed to allow developers to create test accounts. When an account is created,
- a view with VIEW_ID "owner" will be created, and access to this view will be granted to the user
- (you) who created it. If you wish, you may then populate the account with transactions using the
- v1.2.1 payments API.
- If you wish to do this, you will probably want to create some other accounts to send payments to and receive
- payments from.
-
-
- Create a new test bank account:
-
-
-
- Thank you, account ACCOUNT_ID has
- been created at bank BANK_ID with
- an initial balance of INITIAL_BALANCE
- CURRENCY.
-
-
+
+
+ This form is designed to allow developers to create test accounts. When an account is created,
+ a view with VIEW_ID "owner" will be created, and access to this view will be granted to the user
+ (you) who created it. If you wish, you may then populate the account with transactions using the
+ v1.2.1 payments API.
+ If you wish to do this, you will probably want to create some other accounts to send payments to and receive
+ payments from.
+
+
+ Create a new test bank account:
+
+
+
+ Thank you, account ACCOUNT_ID has
+ been created at bank BANK_ID with
+ an initial balance of INITIAL_BALANCE
+ CURRENCY.
+
+
+
\ No newline at end of file
diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html
index c2d3c7d59..90b080a34 100755
--- a/src/main/webapp/index.html
+++ b/src/main/webapp/index.html
@@ -1,6 +1,6 @@
-
- The Open Bank Project is an open source API and App store for banks that empowers financial
- institutions to securely and rapidly enhance their digital offerings using an ecosystem of 3rd
- party applications and services.
+
-Copyright 2011,2012 TESOBE / Music Pictures Ltd.
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Open Bank Project (http://www.openbankproject.com)
- Copyright 2011,2012 TESOBE / Music Pictures Ltd
-
- This product includes software developed at
- TESOBE (http://www.tesobe.com/)
- by
- Simon Redfern : simon AT tesobe DOT com
- Everett Sochowski: everett AT tesobe DOT com
--->
-
-
-
-
-
- Open Bank Project: %*%
-
-
-
-
-
-
-
-
-
Open Bank Project
-
-
-
-
-
-
-
Incorrect username or password
-
- The application web app is
- asking for access to your account data.
-
-
-
-
-
-
-
Please come back to the application where you come from and enter the following code:
-
123123213
-
-
Error message
-
-
-
+ The application web app is
+ asking for access to your account data.
+
+
+
+
+
Please go back to the application where you come from and enter the following code:
+
123123213
+
+
Error message
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/main/webapp/templates-hidden/_login.html b/src/main/webapp/templates-hidden/_login.html
index 3477c6bb4..61ccbce3d 100644
--- a/src/main/webapp/templates-hidden/_login.html
+++ b/src/main/webapp/templates-hidden/_login.html
@@ -1,30 +1,10 @@
-
-
-
\ No newline at end of file
+
+
+
+
+
+ Please login with your username or e-mail address.
+
+
+
+
diff --git a/src/main/webapp/templates-hidden/_login_form.html b/src/main/webapp/templates-hidden/_login_form.html
new file mode 100644
index 000000000..60b9c1873
--- /dev/null
+++ b/src/main/webapp/templates-hidden/_login_form.html
@@ -0,0 +1,19 @@
+
\ No newline at end of file
diff --git a/src/main/webapp/templates-hidden/default.html b/src/main/webapp/templates-hidden/default.html
index fee6148ff..d1531649e 100755
--- a/src/main/webapp/templates-hidden/default.html
+++ b/src/main/webapp/templates-hidden/default.html
@@ -1,6 +1,6 @@
-
-
-
- Open Bank Project: %*%
+
+
+
+ Open Bank Project: %*%
-
-
-
-
-
-