From 914802adc48a757b7c3d3bfd6df9fc57318ff6c0 Mon Sep 17 00:00:00 2001 From: Tw Dover Date: Thu, 16 Aug 2018 17:44:44 -0400 Subject: [PATCH] bootstrap: bootstraped lastword templates --- src/controllers/LastWordController.php | 2 +- src/templates/LW.Add.php | 96 +++++++----- src/templates/LW.Edit.php | 199 ++++++++++++++++--------- src/templates/LW.Faq.php | 114 +++++++------- src/templates/LW.Intro.php | 104 ++++++------- src/templates/LW.List.php | 72 ++++----- src/templates/LW.Websites.php | 120 +++++++++------ 7 files changed, 409 insertions(+), 298 deletions(-) diff --git a/src/controllers/LastWordController.php b/src/controllers/LastWordController.php index 0908d6e..59c293d 100644 --- a/src/controllers/LastWordController.php +++ b/src/controllers/LastWordController.php @@ -45,7 +45,7 @@ public function __construct($argv = [], IDataProvider $DB = null, View $View = n parent::__construct($argv, $DB, $View); $path = str_replace(SITE, '', dirname(__DIR__)); - $this->View->_link('stylesheet', 'text/css', $path.'/css/lastword.css'); + // $this->View->_link('stylesheet', 'text/css', $path.'/css/lastword.css'); $this->View->_script($path.'/js/lastword.js'); $this->View->_script($path.'/js/sha1.js'); $this->View->_script($path.'/js/ajas.js'); diff --git a/src/templates/LW.Add.php b/src/templates/LW.Add.php index aa57337..abc5de9 100644 --- a/src/templates/LW.Add.php +++ b/src/templates/LW.Add.php @@ -1,40 +1,66 @@ render('header'); ?> -
-
-

Add A New Account

+
+
+
- - - - - - - - - - - - - - - - - - - - - - -
+
+
+

Add A New Account

+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
-
+
+
- +
+ render('footer'); diff --git a/src/templates/LW.Edit.php b/src/templates/LW.Edit.php index 5f1c4f5..43b644c 100644 --- a/src/templates/LW.Edit.php +++ b/src/templates/LW.Edit.php @@ -1,73 +1,132 @@ render('header'); ?> -
-
-

Edit An Account

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Record Idlwr_id; ?>
Delete?Warning: Deleting cannot be undone.
Service NameWarning: Changing This will result in a different password!
User NameWarning: Changing This will result in a different password!
Password #Warning: Changing This will result in a different password!
Password LengthWarning: Changing This will result in a different password!

Presets -
Login URLSafe to change: set to the address of the Service's login handler.
Username FieldAdvanced: set this to the form fieldname the service expects a username in
Password FieldAdvanced: set this to the form fieldname the service expects a password in
-
-
+
+
+
+
+
+
+

Edit An Account

+
+
+
+ + + +
+ +
+
+
+ +
+
+ +
+
+
+ +
+
+
+ +
+ +
+
+ Warning: Changing This will result in a different password! +
+
+
+ +
+ +
+
+ Warning: Changing This will result in a different password! +
+
+
+ +
+ +
+
+ Warning: Changing This will result in a different password! +
+
+
+ +
+ +
+
+ Warning: Changing This will result in a different password! +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+ Safe to change: set to the address of the Service's login +
+
+
+ +
+ +
+
+ Advanced: set this to the form fieldname the service expects a username in +
+
+
+ +
+ +
+
+ Advanced: set this to the form fieldname the service expects a password in +
+
+
+ +
+
+
+
+
+
- +
+ render('footer'); diff --git a/src/templates/LW.Faq.php b/src/templates/LW.Faq.php index ff2c3bf..2271c9f 100644 --- a/src/templates/LW.Faq.php +++ b/src/templates/LW.Faq.php @@ -1,55 +1,65 @@ render('header'); ?> -
-

What is "Last Word"?

-

Last Word is a password management system that works by assigning - passwords rather than storing them. The advantage is that your - passwords are not stored anywhere to be found. The disadvantage - is that you cannot choose your own passwords. -

-

How does it work?

-

Three simple steps:

-
    -
  • You provide a list of things you login to, including a - Service name and a Username
  • -
  • You choose and enter a Master Key (Your Last Password)
  • -
  • LastWord performs some one-way hashing on the Service - names, Usernames, and Master Key you provided. The - result is a unique and secure password for each listed - service. -
-

Because the passwords are generated deterministicly from your - information, you can come back and get the same generated - passwords by re-entering the same Master Key. -

-

How secure is this, really?

-

Your passwords are not stored, they are rebuilt on your browser - each time you need them. Your Master Key is not stored, you - tell it to LastWord, and it never saves it. Only your list of - usernames is stored, so even if someone stole our entire server - they would still not have anyone's passwords. So long as your - Master Key is kept secret, your passwords are safe. -

-

What's the deal with those little colorful shapes?

-

Let's call that a pictohash. The pictohash is generated from - your Master Key alone as a quick visual cue to whether you have - entered it as you intended. Since LastWord does not store your - Master Key, this is the only way for us to help you know if you - entered the correctly -- if the pictohash looks the same, the - Master Key is the same. -

-

What if I want to change a password?

-

Simple! Click on the - down - and up - arrows in the "Password #" column to choose a new password. The - number specified here is added to the Service name, Username and - Master Key when producing your password. A different number - here, means a different password. -

-

What if I want to change my Master Key?

-

That's fine, just enter a different value in the field next time, - then, you'll have to change all your passwords. -

-

View your list

+
+
+
+
+

What is "Last Word"?

+
+
+ +

Last Word is a password management system that works by assigning + passwords rather than storing them. The advantage is that your + passwords are not stored anywhere to be found. The disadvantage + is that you cannot choose your own passwords. +

+

How does it work?

+

Three simple steps:

+
    +
  • You provide a list of things you login to, including a + Service name and a Username
  • +
  • You choose and enter a Master Key (Your Last Password)
  • +
  • LastWord performs some one-way hashing on the Service + names, Usernames, and Master Key you provided. The + result is a unique and secure password for each listed + service. +
+

Because the passwords are generated deterministicly from your + information, you can come back and get the same generated + passwords by re-entering the same Master Key. +

+

How secure is this, really?

+

Your passwords are not stored, they are rebuilt on your browser + each time you need them. Your Master Key is not stored, you + tell it to LastWord, and it never saves it. Only your list of + usernames is stored, so even if someone stole our entire server + they would still not have anyone's passwords. So long as your + Master Key is kept secret, your passwords are safe. +

+

What's the deal with those little colorful shapes?

+

Let's call that a pictohash. The pictohash is generated from + your Master Key alone as a quick visual cue to whether you have + entered it as you intended. Since LastWord does not store your + Master Key, this is the only way for us to help you know if you + entered the correctly -- if the pictohash looks the same, the + Master Key is the same. +

+

What if I want to change a password?

+

Simple! Click on the + down + and up + arrows in the "Password #" column to choose a new password. The + number specified here is added to the Service name, Username and + Master Key when producing your password. A different number + here, means a different password. +

+

What if I want to change my Master Key?

+

That's fine, just enter a different value in the field next time, + then, you'll have to change all your passwords. +

+
+
+
+
render('footer'); diff --git a/src/templates/LW.Intro.php b/src/templates/LW.Intro.php index f99e829..9ba33c0 100644 --- a/src/templates/LW.Intro.php +++ b/src/templates/LW.Intro.php @@ -1,62 +1,52 @@ render('header'); ?> -
+
+
+
+
+

What is "Last Word"?

+
+
- -

What is "Last Word"?

-

Last Word is a password management system that works by assigning - passwords rather than storing them. The advantage is that your - passwords are not stored anywhere to be found. The disadvantage - is that you cannot choose your own passwords. The process is - simple, as discribed below: -

-

1. Add the accounts you want to manage

-

You'll notice how the form does not have a field for your password -- - we do things a little different. Enter the name of the Service - you want to access, your username on that service, and the URL - of the login page (for your convenience). -

-

2. Enter your Super-Secret Master Key

-

This Master Key is critical, make sure that it is not too simple, - but still something you will never forget. If you forget this - Master Key, there is no help for recovery. Be sure that no one - else knows it, either, because changing your Master Key means - changing all your passwords. -

-

3. View your passwords here

-

After you have correctly entered your Master Key, your passwords - are displayed in this table. These passwords are NOT STORED - ANYWHERE. Not in our database, not in your computer, nowhere! - Set your accounts to use these passwords, then you can always - refer back to this list after providing the same Master Key - that you used to create this list. -

-

Notice that entering an incorrect - Master Key will still display passwords, they are just not the - correct passwords. Only you know when the correct passwords - are displayed, because only you know your Master Key. -

-

To protect against people looking over your shoulder, passwords - are obscured until you mouseover them, and a "copy" link is - provided that will copy the password directly to the clipboard - for you to paste into the service's login form. -

-

View your list

+
render('footer'); diff --git a/src/templates/LW.List.php b/src/templates/LW.List.php index f9b15d2..aa1f765 100644 --- a/src/templates/LW.List.php +++ b/src/templates/LW.List.php @@ -1,56 +1,58 @@ render('header'); ?> -
-
-
- Add Service -

Master Key

-
-
+
+
+
+ Add Service +

Master Key

+
+
- Enter your Master Key to get your Passwords + onkeyup="update_();" onchange="update_();"> + Enter your Master Key to get your Passwords
-
- - - - - - - - - - - - +
+ +
ResourceUsernamePassword #Password
+ + + + + + + + + + + + 0) + if (is_array($list) && count($list) > 0) foreach ($list as $k => $v){ echo ' - + - + - + '; } else { - echo ''; - } + echo ''; + } ?> - -
ResourceUsernamePassword #Password
edit '.$v->service.' '.$v->username.'Choose Previous PasswordChoose Previous Password '.$v->resetCount.'Choose Next PasswordChoose Next Password Enter Key'.(strlen($v->loginURI)<8?'':'login').''.(strlen($v->loginURI)<8?'':'login').'
You will need to add a Service above.
You will need to add a Service above.
-

+ + +

-
- +
+ render('footer'); diff --git a/src/templates/LW.Websites.php b/src/templates/LW.Websites.php index 7bc93f1..a2809fb 100644 --- a/src/templates/LW.Websites.php +++ b/src/templates/LW.Websites.php @@ -1,51 +1,75 @@ render('header'); ?> -
-
-

Edit Website

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Choose a Website -
Record Id
Delete?
Website Name
Login URL
Username Field
Password Field
-
-
+
+
+
+
+
+
+

Choose a Website

+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+ +
+
+ +
+ +
+
+
+ +
+
+
+
+
+
- +
+ render('footer');