Skip to content
This repository has been archived by the owner on Aug 27, 2020. It is now read-only.

Commit

Permalink
fifth useable alpha release
Browse files Browse the repository at this point in the history
* adds new feature: add new credentials where already some exists
* adds new feature: update exisiting credential where one or more matches
* updates version Info.plist and Update.plist
  • Loading branch information
mmichaa committed Nov 4, 2014
1 parent 184b74d commit b403d20
Show file tree
Hide file tree
Showing 7 changed files with 142 additions and 99 deletions.
4 changes: 2 additions & 2 deletions Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleShortVersionString</key>
<string>1.0.alpha4</string>
<string>1.0.alpha5</string>
<key>CFBundleVersion</key>
<string>0.8.4</string>
<string>0.8.5</string>
<key>Chrome</key>
<dict>
<key>Global Page</key>
Expand Down
34 changes: 25 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,28 @@ Extensions to allow Safari to auto form-fill passwords from KeePass (requires Ke

TODO write some useful stuff.

## Installation

TODO write some useful stuff.

## Usage

TODO write some useful stuff.

## Features

- [X] Associate
- [X] Associate with KeePassHTTP
- [X] Retrieve credentials
- [X] Support for single match
- [X] Support for multiple matches
- [X] Add new credentials
- [X] Use password generator on empty password
- [X] Support for no match
- [ ] Support for single match
- [ ] Support for multiple matches
- [ ] Update existing credentials
- [ ] Use password generator on empty password
- [ ] Support for single match
- [ ] Support for multiple matches
- [X] Support where none matches
- [X] Support where one or more matches
- [X] Update existing credentials
- [X] Use password generator on empty password
- [X] Support where one matches
- [X] Support where more matches
- [X] Settings for hostname and port
- [X] Setting for language
- [X] I18n support
Expand All @@ -29,4 +36,13 @@ TODO write some useful stuff.
- Thanks to [SlowAES](https://code.google.com/p/slowaes/) for aes.js, cryptoHelpers.js and jsHash.js
- Thanks to [pfn/passifox](https://github.com/pfn/passifox/) for keepass.js
- Thanks to [webtoolkit.info](http://www.webtoolkit.info/javascript-utf8.html) for utf8.js
- Thanks to [eligrey/l10n.js](https://github.com/eligrey/l10n.js) for l10n.js
- Thanks to [eligrey/l10n.js](https://github.com/eligrey/l10n.js) for l10n.js
- Thanks to [mstarke/MacPass](https://github.com/mstarke/MacPass) for MacPass.app

## Contributing

1. Fork it
2. Create your feature branch _(git checkout -b my-new-feature)_
3. Commit your changes _(git commit -am 'Add some feature')_
4. Push to the branch _(git push origin my-new-feature)_
5. Create new Pull Request
6 changes: 3 additions & 3 deletions Update.plist
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
<key>Developer Identifier</key>
<string>897X8SYVFR</string>
<key>CFBundleVersion</key>
<string>1.0.alpha4</string>
<string>1.0.alpha5</string>
<key>CFBundleShortVersionString</key>
<string>0.8.4</string>
<string>0.8.5</string>
<key>URL</key>
<string>https://github.com/mmichaa/passafari.safariextension/releases/download/v1.0.alpha4/passafari-v1.0.alpha4.safariextz</string>
<string>https://github.com/mmichaa/passafari.safariextension/releases/download/v1.0.alpha5/passafari-v1.0.alpha5.safariextz</string>
</dict>
</array>
</dict>
Expand Down
8 changes: 6 additions & 2 deletions end.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
console.log('passafari: end.js');

// HANDLER for message events
function passafari_injected_message_handler(event) {
var name = event.name;
var data = event.message;
Expand All @@ -17,6 +18,7 @@ function passafari_injected_message_handler(event) {
return undefined;
}

// LISTENER for message only on top window
if(window.parent === window) {
console.log('passafari: window.top');
safari.self.addEventListener("message", passafari_injected_message_handler, false);
Expand Down Expand Up @@ -55,10 +57,12 @@ function passafari_injected_message_readout(event_name, event_data) {
var username = inputs.username.value;
var password = inputs.password.value;

passafari_notify_global_page("passafari_message_save", {"Login": username, "Password": password});
passafari_notify_global_page("passafari_message_readout", {"Login": username, "Password": password, "Uuid": undefined});
} else {
console.log("passafari_injected_message_readout: more than one inputs found.")
console.log(inputs);

passafari_notify_global_page("passafari_message_readout", null);
}

return undefined;
Expand Down Expand Up @@ -109,7 +113,7 @@ function passafari_input_candidates() {
for(var candidate_idx=0; candidate_idx < candidates.length; candidate_idx++) {
var inputs = candidates[candidate_idx];

if (inputs.username === document.activeElement || inputs.password === document.activeElement) {
if(inputs.username === document.activeElement || inputs.password === document.activeElement) {
console.log("passafari_input_candidates: using focused fields.")
candidates = [ inputs ];
break;
Expand Down
Loading

0 comments on commit b403d20

Please sign in to comment.