Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
Updating commit before making changes
Browse files Browse the repository at this point in the history
Just make sure everything is up to date
  • Loading branch information
JumpMaster committed Feb 25, 2015
1 parent e1966ce commit 93c172f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
21 changes: 14 additions & 7 deletions appinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,40 @@
"projectType": "native",
"resources": {
"media": [
{
"file": "images/auth_icon.png",
"menuIcon": true,
"name": "IMAGE_ICON",
"type": "png"
},
{
"characterRegex": "[0-9]",
"compatibility": "2.7",
"file": "fonts/BD_Cartoon_Shout.ttf",
"name": "FONT_BD_CARTOON_28",
"type": "font"
},
{
"compatibility": "2.7",
"file": "fonts/BD_Cartoon_Shout.ttf",
"name": "FONT_BD_CARTOON_20",
"type": "font"
},
{
"characterRegex": "[0-9]",
"compatibility": "2.7",
"file": "fonts/ANDROID_24.ttf",
"name": "FONT_DIGITAL_38",
"type": "font"
},
{
"compatibility": "2.7",
"file": "fonts/ANDROID_24.ttf",
"name": "FONT_DIGITAL_28",
"type": "font"
},
{
"compatibility": "2.7",
"file": "fonts/UNISPACE_20.ttf",
"name": "FONT_UNISPACE_20",
"type": "font"
Expand All @@ -57,27 +68,23 @@
"type": "png"
},
{
"compatibility": "2.7",
"file": "fonts/ORBITRON_28.ttf",
"name": "FONT_ORBITRON_28",
"type": "font"
},
{
"compatibility": "2.7",
"file": "fonts/BITWISE_32.ttf",
"name": "FONT_BITWISE_32",
"type": "font"
},
{
"file": "images/auth_icon.png",
"menuIcon": true,
"name": "IMAGE_ICON",
"type": "png"
}
]
},
"shortName": "PebbleAuth",
"uuid": "1f4d9835-3b9a-4ddd-907e-41a25d06f19c",
"versionCode": 5,
"versionLabel": "1.4",
"versionLabel": "1.5",
"watchapp": {
"watchface": false
}
Expand Down
5 changes: 3 additions & 2 deletions src/js/pebble-js-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var idle_timeout = 0;
var message_send_retries = 0;
var message_send_max_retries = 5;
var app_version = 6;
var debug = false;
var debug = true;

function loadLocalVariables() {

Expand Down Expand Up @@ -166,7 +166,7 @@ Pebble.addEventListener("webviewclosed",
console.log("INFO: Deleting key "+i);
localStorage.removeItem('secret_pair'+i);
}

otp_count = 0;
sendAppMessage(configuration);
return;
}
Expand Down Expand Up @@ -201,6 +201,7 @@ Pebble.addEventListener("webviewclosed",
config.idle_timeout = idle_timeout;

if(configuration.label && configuration.secret) {

var secret = configuration.secret
.replace(/0/g,"O")
.replace(/1/g, "I")
Expand Down
3 changes: 2 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#define MAX_LABEL_LENGTH 21 // 20 + termination
#define MAX_KEY_LENGTH 65 // 64 + termination
#define MAX_COMBINED_LENGTH MAX_LABEL_LENGTH+MAX_KEY_LENGTH
#define DEBUG false
#define DEBUG true

// Main Window
Window *main_window;
Expand Down Expand Up @@ -677,6 +677,7 @@ static void in_received_handler(DictionaryIterator *iter, void *context) {
}
otp_default = 0;
watch_otp_count = 0;
phone_otp_count = 0;
otp_selected = 0;
persist_write_int(PS_DEFAULT_KEY, otp_default);
refresh_screen_data(DOWN);
Expand Down

0 comments on commit 93c172f

Please sign in to comment.