Commit graph

50 commits

Author SHA1 Message Date
Yishi Lin
0f9b95eaa9 Polish codes about OTP 2017-03-24 23:14:44 +08:00
Yishi Lin
95b3a7fcd3 Update views after setting updates 2017-03-24 20:40:24 +08:00
Bob Sun
d83b17c629 Fix a warning
Use a variable to store return value to avoid warning.
2017-03-22 17:40:04 -07:00
Bob Sun
7c7f32803d
Fix a bug caused by typo 2017-03-21 22:36:00 -07:00
Bob Sun
c21502a10f
Merge and resolve conflit 2017-03-21 13:34:26 -07:00
Bob Sun
ee9776ab71
Support deleting password 2017-03-21 13:16:25 -07:00
Yishi Lin
93901ec010 Polish codes about password details
- in Password.swift: allow get otpType
- in PasswordDetailTableVC.swift: make many things private
- in LabelTableViewCell: remove password and password entity
- in Globals: add password dots and fonts
2017-03-22 01:50:56 +08:00
Yishi Lin
131c3af873 Refresh the password table after getting the next HOTP password. 2017-03-22 00:22:47 +08:00
Bob Sun
1141e267d9
Delete log messages 2017-03-20 21:51:29 -07:00
Bob Sun
035da94ad9
Remove indicator label during decrypting password since decryption become really fast 2017-03-17 10:25:10 -07:00
Yishi Lin
1f829fffcc Polish notification
- define notification names
- move "post notification" to PasswordStore (todo: move "search" and the one for "show folder switch")
- "erase" and "reset" also post the "passwordStoreUpdated" notification
2017-03-18 00:30:14 +08:00
Bob Sun
d2cff20131 Put PasswordStore as instance in controllers 2017-03-16 22:39:03 -07:00
Bob Sun
f573be9ee0 Fix #54: try other ways to load favicon
- try to replace http to https
- if a url does not start with http or https, try to add https
- return if cannot form a URL
2017-03-15 14:14:42 -07:00
Bob Sun
ff947f8e17
Move get category text logic to model 2017-03-10 23:08:17 -08:00
Yishi Lin
5ea9a3118b Go back to the "password store" view if user discards all local changes.
- Otherwise, editing an updated entry will crash the app.
- Showing an deleted entry is not reasonable.
2017-03-11 02:14:18 +08:00
Yishi Lin
3cf88dcbc8 Fix a bug about TOTP refresh 2017-03-07 09:50:18 +08:00
Yishi Lin
0dccd911fd Update OTP token generation and support HOTP
- Update logic: Only fields otp_secret and otp_type are required for TOTP. Only fields otp_secret, otp_type and otp_counter are required for HOTP. Other fields (i.e., otp_algorithm, otp_digits, otp_period) are optional.
- Support HOTP: (1) passwords are initially concealed; (2) "tap->next" generates a new password and commits the updated password file automatically
2017-03-07 01:33:44 +08:00
Yishi Lin
2f1721a7e7 Update time-based one time passwords automatically
- Improve how we differ between TOTP and HTOP
2017-03-05 02:54:36 +08:00
Yishi Lin
f2edc2ffaa Support hiding one time password related fields.
- Add a switch to turn on/off one time password related fields.
- Improve how we show the additional information
2017-03-03 17:12:25 +08:00
Yishi Lin
3dac155d6c Provide basic support about one time password (totp only) 2017-03-03 14:45:16 +08:00
Bob Sun
f3497cdc0f
Merge commits and resolve conflits 2017-03-02 15:32:11 +08:00
Bob Sun
050a960167
Support folder in password view
- change core data
  - change data struct to store table view entry
  - delete unnecessary functions
2017-03-02 14:51:40 +08:00
yishilin14
8798be65b5 Use relative time to present last updated time 2017-03-02 00:35:11 +08:00
Bob Sun
6d7bf62cf7
Fix a bug caused by initializing editUIBarButtonItem with self in action
Change to lazy initialization variable can fix it.
2017-02-28 17:52:00 +08:00
Bob Sun
fa512e6c86
Add switch to turn on/off remembering passphrase
If the switch is on, users need  to type passphrase of secret key once. The key will be stored in the Keychain.

If the switch is off, users have to fill in passphrase for each decryption including show password detail and long press to copy.
2017-02-28 12:25:52 +08:00
Bob Sun
1c45766b96
Use gray instead of lightGray to show last updated time 2017-02-27 17:37:53 +08:00
yishilin14
55b7e4303b Update the logic of showing latest commit time 2017-02-27 15:21:25 +08:00
yishilin14
c2db4d4641 Show last commit time of each entry 2017-02-27 08:54:51 +08:00
yishilin14
2f3ccc9c07 clear pasteboard after 45 seconds 2017-02-23 17:56:12 +08:00
Bob Sun
a2bcbe1804
show error alert window when cannot decrypt password 2017-02-22 12:56:06 +08:00
Bob Sun
ceb52a5b33
show unsynced symbol in the name of password in password detail page 2017-02-19 00:55:13 +08:00
Bob Sun
83b9762122
solve core data conflict caused by updating password entity image 2017-02-16 13:24:41 +08:00
Bob Sun
1b5e98e987
disable edit button before finishing decryption 2017-02-15 21:25:03 +08:00
Bob Sun
77945b11f8
move showProgress method to main thread 2017-02-15 21:11:22 +08:00
Bob Sun
869f06e00f
change update password related functions 2017-02-15 20:01:17 +08:00
Bob Sun
9eb5f57b80
only compare prefix 2017-02-15 16:20:36 +08:00
Bob Sun
2546666d91
remove commented code 2017-02-14 16:43:06 +08:00
Bob Sun
3ffb2fa9ac
fix bugs 2017-02-14 16:08:10 +08:00
Bob Sun
b09add3413
don't show username password in additional fields 2017-02-14 12:54:51 +08:00
Bob Sun
fe1c01c6dc
Hide unknown fields 2017-02-14 11:16:30 +08:00
Bob Sun
b2ee8c429f
support edit password 2017-02-13 01:15:42 +08:00
Bob Sun
010ec3b322
fix a bug in downloading password image 2017-02-12 01:58:42 +08:00
Bob Sun
49b26f0276
refactor Password class 2017-02-11 16:07:59 +08:00
Bob Sun
95de38988b
polish code 2017-02-09 16:57:16 +08:00
Bob Sun
c76f1c24b0
polish code 2017-02-09 16:57:16 +08:00
Bob Sun
9a871ef852
delete debug message 2017-02-09 16:57:16 +08:00
Bob Sun
e2036f202f
save image in core data 2017-02-09 16:57:16 +08:00
Bob Sun
c0edb7d336
weak self 2017-02-09 13:33:50 +08:00
Bob Sun
ac007fec6d
update icon in detailed page 2017-02-09 13:17:11 +08:00
Bob Sun
910660ede3
restructure file organization 2017-02-08 19:57:07 +08:00
Renamed from pass/PasswordDetailTableViewController.swift (Browse further)