fix error when filename is errorous
update library
This commit is contained in:
parent
7f680ff4a1
commit
54ca3760f7
2
library
2
library
@ -1 +1 @@
|
|||||||
Subproject commit 3326ee886b0121237a84217ab9508728c722f8d4
|
Subproject commit 02d6683cd84e54e3093bebb0910b3cef7210203f
|
@ -49,7 +49,7 @@ fn get_entries() -> Vec<String> {
|
|||||||
for entry in ip_lib::get_entries() {
|
for entry in ip_lib::get_entries() {
|
||||||
let entry_filename = entry.unwrap().file_name();
|
let entry_filename = entry.unwrap().file_name();
|
||||||
let ent = entry_filename.to_str().unwrap();
|
let ent = entry_filename.to_str().unwrap();
|
||||||
if ent != "token.ipasst" {
|
if ent != "token.ipasst" && ent.len()>6 {
|
||||||
vector.insert(0, ent[..ent.len()-6].to_string());
|
vector.insert(0, ent[..ent.len()-6].to_string());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -74,6 +74,7 @@ fn remove_entry(name: &str) -> bool {
|
|||||||
fn open_authorize() -> u32 {
|
fn open_authorize() -> u32 {
|
||||||
let code:u32 = rand::random();
|
let code:u32 = rand::random();
|
||||||
open::that(format!("https://ipost.rocks/authorize?id=1&extra={}",code)).unwrap();
|
open::that(format!("https://ipost.rocks/authorize?id=1&extra={}",code)).unwrap();
|
||||||
|
//the IPass app id is 1
|
||||||
code
|
code
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user