From cdd48f30c7fca97327de48ff6b1cd9edf1629a5d Mon Sep 17 00:00:00 2001
From: Ugnich Anton
Date: Fri, 29 Mar 2013 16:29:02 +0700
Subject: Facebook signup
---
src/java/Login.properties | 4 +
src/java/Login_ru.properties | 4 +
src/java/SignUp.properties | 11 +
src/java/SignUp_ru.properties | 10 +
src/java/com/juick/http/www/FacebookLogin.java | 162 +++++++++++++++
src/java/com/juick/http/www/Login.java | 7 +
src/java/com/juick/http/www/Main.java | 32 ++-
src/java/com/juick/http/www/PageTemplates.java | 4 +-
src/java/com/juick/http/www/Settings.java | 108 ++++++++++
src/java/com/juick/http/www/SignUp.java | 270 +++++++++++++++++++++++++
src/java/com/juick/http/www/Utils.java | 20 ++
11 files changed, 619 insertions(+), 13 deletions(-)
create mode 100644 src/java/SignUp.properties
create mode 100644 src/java/SignUp_ru.properties
create mode 100644 src/java/com/juick/http/www/FacebookLogin.java
create mode 100644 src/java/com/juick/http/www/Settings.java
create mode 100644 src/java/com/juick/http/www/SignUp.java
(limited to 'src/java')
diff --git a/src/java/Login.properties b/src/java/Login.properties
index 820b58f3..f75010af 100644
--- a/src/java/Login.properties
+++ b/src/java/Login.properties
@@ -4,3 +4,7 @@
Login=Login
Username=Username
Password=Password
+Login\ Facebook=Login with Facebook
+Login\ XMPP=Login with Jabber/XMPP
+XMPP\ instructions=Send LOGIN from your Jabber/XMPP account to juick@juick.com.
+Have\ Juick=Have a Juick account?
diff --git a/src/java/Login_ru.properties b/src/java/Login_ru.properties
index 402e58eb..84eef016 100644
--- a/src/java/Login_ru.properties
+++ b/src/java/Login_ru.properties
@@ -4,3 +4,7 @@
Login=\u0412\u0445\u043e\u0434
Username=\u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f
Password=\u041f\u0430\u0440\u043e\u043b\u044c
+Login\ Facebook=\u0412\u043e\u0439\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 Facebook
+Login\ XMPP=\u0412\u043e\u0439\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 Jabber/XMPP
+XMPP\ instructions=\u041e\u0442\u043f\u0440\u0430\u0432\u044c\u0442\u0435 LOGIN \u0441 \u0432\u0430\u0448\u0435\u0433\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 Jabber/XMPP \u043d\u0430 juick@juick.com.
+Have\ Juick=\u0423\u0436\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043d\u0430 Juick?
diff --git a/src/java/SignUp.properties b/src/java/SignUp.properties
new file mode 100644
index 00000000..4bb0a162
--- /dev/null
+++ b/src/java/SignUp.properties
@@ -0,0 +1,11 @@
+Unknown\ account=Unknown account
+Link\ with\ existing=Link with existing Juick account
+Link\ with\ this=Link with this account
+Create\ new=Create new Juick account
+Username=Username
+Username\ restrictions=(2 to 16 latin letters and/or numbers, dash sign)
+Password=Password
+Password\ restrictions=(6 to 32 symbols)
+Language=Your primary language
+Languages=English,Russian,French,Persian,Other
+Language\ codes=en,ru,fr,fa,__
diff --git a/src/java/SignUp_ru.properties b/src/java/SignUp_ru.properties
new file mode 100644
index 00000000..27776f1f
--- /dev/null
+++ b/src/java/SignUp_ru.properties
@@ -0,0 +1,10 @@
+Unknown\ account=\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442
+Link\ with\ existing=\u0421\u0432\u044f\u0437\u0430\u0442\u044c \u0441 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u043c Juick
+Link\ with\ this=\u0421\u0432\u044f\u0437\u0430\u0442\u044c \u0441 \u044d\u0442\u0438\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u043c
+Create\ new=\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 Juick
+Username=\u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f
+Username\ restrictions=(\u041e\u0442 2-\u0445 \u0434\u043e 16-\u0438 \u043b\u0430\u0442\u0438\u043d\u0441\u043a\u0438\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0438/\u0438\u043b\u0438 \u0446\u0438\u0444\u0440, \u0434\u0435\u0444\u0438\u0441)
+Password=\u041f\u0430\u0440\u043e\u043b\u044c
+Password\ restrictions=(\u043e\u0442 6-\u0438 \u0434\u043e 32-\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)
+Language=\u0412\u0430\u0448 \u0440\u043e\u0434\u043d\u043e\u0439 \u044f\u0437\u044b\u043a
+Languages=\u0410\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439,\u0420\u0443\u0441\u0441\u043a\u0438\u0439,\u0424\u0440\u0430\u043d\u0446\u0443\u0437\u0441\u043a\u0438\u0439,\u041f\u0435\u0440\u0441\u0438\u0434\u0441\u043a\u0438\u0439,\u0414\u0440\u0443\u0433\u043e\u0439
diff --git a/src/java/com/juick/http/www/FacebookLogin.java b/src/java/com/juick/http/www/FacebookLogin.java
new file mode 100644
index 00000000..8933075b
--- /dev/null
+++ b/src/java/com/juick/http/www/FacebookLogin.java
@@ -0,0 +1,162 @@
+/*
+ * Juick
+ * Copyright (C) 2008-2013, Ugnich Anton
+ *
+ * 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