mirror of
https://github.com/moparisthebest/mailiverse
synced 2024-12-21 12:58:48 -05:00
makes the captcha keys optional
This commit is contained in:
parent
ea3a64ba38
commit
d304533cca
@ -8,6 +8,7 @@ HOST_PRIMARY=`cat ../config/hosts/$M`
|
||||
HOST_AUTH=`cat ../config/hosts/auth_$M`
|
||||
HOST_TOMCAT=`cat ../config/hosts/tomcat_$M`
|
||||
HOST_WEB=`cat ../config/hosts/web_$M`
|
||||
RECAPTCHA_PUBLIC_KEY=`cat ../keys/recaptcha/public.key`
|
||||
|
||||
function replaceStrings() {
|
||||
sed -i '' -f replace_js_$M.sed $1
|
||||
@ -18,6 +19,7 @@ function replaceStrings() {
|
||||
sed -i '' -e s/{##HOST_AUTH##}/$HOST_AUTH/g $1
|
||||
sed -i '' -e s/{##HOST_TOMCAT##}/$HOST_TOMCAT/g $1
|
||||
sed -i '' -e s/{##HOST_WEB##}/$HOST_WEB/g $1
|
||||
sed -i '' -e s/{##RECAPTCHA_PUBLIC_KEY##}/$RECAPTCHA_PUBLIC_KEY/g $1
|
||||
}
|
||||
|
||||
echo Replacing Strings
|
||||
|
@ -1 +1 @@
|
||||
../../../passwords/captcha_private_key
|
||||
../../../keys/recaptcha/private.key
|
1
keys/recaptcha/public.key
Normal file
1
keys/recaptcha/public.key
Normal file
@ -0,0 +1 @@
|
||||
NONE
|
@ -5,7 +5,10 @@ EmbeddedResources = {
|
||||
"{##TRUSTSTORE_AUTH##}",
|
||||
|
||||
"mail.client.Mailer.send-truststore.jks.b64" :
|
||||
"{##TRUSTSTORE_SEND##}"
|
||||
"{##TRUSTSTORE_SEND##}",
|
||||
|
||||
"mail.signup.SignUp.recaptcha-public-key" :
|
||||
"{##RECAPTCHA_PUBLIC_KEY##}"
|
||||
};
|
||||
|
||||
/** resources **/
|
||||
|
@ -145,7 +145,7 @@
|
||||
<script>
|
||||
Recaptcha
|
||||
.create(
|
||||
"6LcNeNISAAAAAOll_n6Mj_YC0lVvjIgiEHNFAjV1",
|
||||
EmbeddedResources["mail.signup.SignUp.recaptcha-public-key"],
|
||||
"recaptcha_container",
|
||||
{
|
||||
theme : "red",
|
||||
@ -173,8 +173,8 @@
|
||||
<div class="inner-td">
|
||||
I want to use the storage provider:<br/>
|
||||
<br/>
|
||||
<label class="checkbox inline"><input name="storage" type="radio" onchange="mSignUp.onStorageChange();" value="mailiverse" checked>{##TITLE##}</label><br/>
|
||||
<label class="checkbox inline"><input name="storage" type="radio" onchange="mSignUp.onStorageChange();" value="s3">{##TITLE##} (S3 Backed)</label><br>
|
||||
<label class="checkbox inline"><input name="storage" type="radio" onchange="mSignUp.onStorageChange();" value="mailiverse" checked>Mailiverse</label><br/>
|
||||
<label class="checkbox inline"><input name="storage" type="radio" onchange="mSignUp.onStorageChange();" value="s3">Mailiverse (S3 Backed)</label><br>
|
||||
<label class="checkbox inline"><input name="storage" type="radio" onchange="mSignUp.onStorageChange();" value="dropbox">Dropbox</label><br/>
|
||||
</div>
|
||||
</td>
|
||||
@ -183,13 +183,13 @@
|
||||
<tr id="storage_s3" class="storage-option" style="display:none">
|
||||
<td class="left-side">
|
||||
<div class="inner-td">
|
||||
<h4>{##TITLE##} S3 backed storage</h4>
|
||||
<h4>Mailiverse S3 backed storage</h4>
|
||||
We provide infinite mail storage.
|
||||
</div>
|
||||
</td>
|
||||
<td class="right-side">
|
||||
<div class="inner-td">
|
||||
{##TITLE##} S3 backed storage is simple, no hassle. We take care of everything.<br/>
|
||||
Mailiverse S3 backed storage is simple, no hassle. We take care of everything.<br/>
|
||||
<br/>
|
||||
Pick the region you are closest to most of the time.<br/>
|
||||
<select id="storage_s3_region">
|
||||
@ -209,13 +209,13 @@
|
||||
<tr id="storage_mailiverse" class="storage-option">
|
||||
<td class="left-side">
|
||||
<div class="inner-td">
|
||||
<h4>{##TITLE##} storage</h4>
|
||||
<h4>Mailiverse storage</h4>
|
||||
We provide infinite mail storage. This storage is backed by our local db.
|
||||
</div>
|
||||
</td>
|
||||
<td class="right-side">
|
||||
<div class="inner-td">
|
||||
{##TITLE##} storage is simple, no hassle. We take care of everything.<br/>
|
||||
Mailiverse storage is simple, no hassle. We take care of everything.<br/>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@ -226,7 +226,7 @@
|
||||
<h4>Dropbox storage</h4>
|
||||
|
||||
Store your mail on your own dropbox account.
|
||||
It's easy, just click on the button to open a new tab to link {##TITLE##} to Dropbox.<br/>
|
||||
It's easy, just click on the button to open a new tab to link Mailiverse to Dropbox.<br/>
|
||||
<br/>
|
||||
Enter the authorization verification code recieved.
|
||||
<br/>
|
||||
|
@ -3,6 +3,7 @@
|
||||
mSignUp = {
|
||||
|
||||
executeText: "",
|
||||
useCaptcha: EmbeddedResources["mail.signup.SignUp.recaptcha-public-key"] != "NONE",
|
||||
|
||||
service: null,
|
||||
validate: { name: false, password: false, password_check:false, storageAuthorized:true, captcha:false, tos:false },
|
||||
@ -13,9 +14,15 @@ mSignUp = {
|
||||
userToken: { key: null, secret : null },
|
||||
dropboxAuthorizationCode: null,
|
||||
captchaToken:null,
|
||||
|
||||
|
||||
initialize: function()
|
||||
{
|
||||
mSignUp.validate.captcha = mSignUp.useCaptcha;
|
||||
if (!mSignUp.useCaptcha)
|
||||
{
|
||||
$('#_mSignUp_captcha_submit').text("Captcha key not present");
|
||||
$('#_mSignUp_captcha_submit').attr("disabled", "disabled");
|
||||
}
|
||||
},
|
||||
|
||||
onStorageChange: function()
|
||||
|
Loading…
Reference in New Issue
Block a user