DavidAnson/PassWeb

Usage example..

TheInsomniac opened this issue · 1 comments

I like the idea of your application but can't determine how to ADD a user nor if there is a way to access the administrator account to add/remove users.

I've commented out the section in the .cs file to block creation of new users and then opened the web page.

Upon first opening the page (running under IIS) I'm met with a login prompt from which I can use any username or password but then receive a notice at the bottom stating that it can't connect to the server and that it's using local data.

Also, while App_Data folder has write permissions for the appropriate IIS user (I use this same configuration for other applications that also have App_Data folders with write perms) I don't see it ever create the PassWeb directory.

Your assistance would be greatly appreciated, thanks!

@TheInsomniac,

Very sorry for the delay responding - GitHub wasn't sending me notifications.

Here are the steps to create a new account starting from a fresh clone of the repository hosted by IIS Express (similar steps apply if hosted with Node.js):

  1. Open PassWebClone\App_Code\RemoteStorage.cs and comment out the line: #define BLOCK_NEW
  2. Run the site and open it in a web browser
  3. Log in with the desired name/password (I'm using "user"/"pass" for this example)
  4. Click "New entry..."
  5. Provide a user name and password (at least) for the entry and click the "save" icon

To verify:

  1. Press F5 to refresh the browser
  2. Log in with the same name/password
  3. Your entry will be present

Optionally:

  1. Open the PassWebClone\App_Data\PassWeb directory and verify the existence of the file 6414c98bbef7f460cb6658234eb306f68713f5738a18f5f37bbd6daa768c12c69989b9613e60f4c41ece1c42c3c87945ae615da8642e876b77f387806ac77804 (for this example)

To finish:

  1. Restore the commented-out line from step 1 above

Regarding permission issues, please try the above steps with IIS Express to verify the basics. Assuming that works, my guess would be that perhaps RemoteStorage isn't getting registered? It sounds like you're familiar with permissions for ASP.NET folders - maybe just verify the correct permissions for App_Data and that RemoteStorage.cs exists in the App_Code directory directly off the root of the site - important for IIS because you probably won't have rooted the site at the PassWeb directory itself.

I hope this is helpful - please let me know if you're still stuck!