auto login encryption done…
This commit is contained in:
1 parent
c158375d02
commit
aacd9da9fb
9 files changed
+28
-36
No files matched your search
@@ -1,20 +1,10 @@
|
||||
var gmail = function(){
|
||||
var usernm = $("#gmail input[type=text]").val();
|
||||
var pwd = $("#gmail input[type=password]").val();
|
||||
// usernm = "hr@rulingcom.com";
|
||||
// pwd = "hr08973"
|
||||
if(usernm!="" && pwd!=""){
|
||||
$("#gmail a#gmail_button").text("Check again");
|
||||
$("#gmail #loading").show();
|
||||
$("#gmail table#form").hide();
|
||||
$.ajax({
|
||||
url: "/desktop/forgmail",
|
||||
dataType : "xml",
|
||||
data : {username:usernm,password:pwd},
|
||||
success:function(data){
|
||||
if($(data).find("HEAD").find("TITLE").text()=="Unauthorized"){
|
||||
$("#gmail #forerror").text($(data).find("HEAD").find("TITLE").text()).show();
|
||||
$("#gmail table#form").show();
|
||||
}else{
|
||||
if($(data).find("fullcount").text()=="0"){
|
||||
$("#gmail #forerror").hide();
|
||||
@@ -22,9 +12,9 @@ var gmail = function(){
|
||||
}else{
|
||||
var msg;
|
||||
if($(data).find("fullcount").text()=="1")
|
||||
msg = $(data).find("fullcount").text()+" unread message in your inbox."
|
||||
msg = $(data).find("fullcount").text()+" unread message in your inbox.";
|
||||
else
|
||||
msg = $(data).find("fullcount").text()+" unread messages in your inbox."
|
||||
msg = $(data).find("fullcount").text()+" unread messages in your inbox.";
|
||||
o.notify(msg,"alert",2);
|
||||
$(data).find("entry").each(function(i,val){
|
||||
if(i==0){
|
||||
@@ -41,15 +31,14 @@ var gmail = function(){
|
||||
$("#gmail #content").show();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
var saveaccount = function(){
|
||||
var usernm = $("#gmail input[type=text]").val();
|
||||
var pwd = $("#gmail input[type=password]").val();
|
||||
usernm = "hr@rulingcom.com";
|
||||
usernm = "harry@rulingcom.com";
|
||||
pwd = "hr08973";
|
||||
if(usernm!="" && pwd!=""){
|
||||
$.post("/desktop/save_account_info",{email:usernm,password:pwd,account:"gmail"})
|
||||
$.post("/desktop/save_account_info",{email:usernm,password:pwd,account:"yahoo"})
|
||||
}
|
||||
}
|
||||
@@ -1,17 +1,6 @@
|
||||
<div id="gmail">
|
||||
<div id="forerror" style="color:red;display:none;"></div>
|
||||
<table id="form">
|
||||
<tr>
|
||||
<td><label class="thmtxt" style="width:75px;">Username:</label></td><td><input type="text" style="width:150px;" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label class="thmtxt" style="width:75px;">Password:</label></td><td><input type="password" style="width:150px;" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align='center'><a href="" onclick="gmail();return false;" class='thmtxt' id="gmail_button">Check for new mail</button></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id="loading" style="display:none" class="thmtxt">Retrieving new emails...</div>
|
||||
<div id="loading" class="thmtxt">Retrieving new emails...</div>
|
||||
<div id="content" style="display:none;"background-color:#000;height:200px;"" >
|
||||
<div id="subject" ></div>
|
||||
<div id="date" class='thmtxt'></div>
|
||||
@@ -20,6 +9,6 @@
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
|
||||
gmail();
|
||||
})
|
||||
</script>
|
||||
Reference in new issue
Block a user