password reveal toggling

Squashed commit of the following:

commit fde3cc16310062842ccc676a7c33ebfe9b7a3372
Author: Mark Moser <MarkAMoser@gmail.com>
Date:   Sun Sep 11 19:51:32 2016 -0500

    icons

commit f4765d24073cdc7e790e9d6fbb73155ba96ac414
Author: Mark Moser <MarkAMoser@gmail.com>
Date:   Sun Sep 11 19:22:14 2016 -0500

    view toggling

commit 0929b005981a34e46aa0ad6e59d315d5203eed02
Author: Mark Moser <MarkAMoser@gmail.com>
Date:   Sun Sep 11 10:21:03 2016 -0500

    controller xhr

commit 859e1dff28f17feb43f9facc57f887f24e9e8fed
Author: Mark Moser <MarkAMoser@gmail.com>
Date:   Sun Sep 11 09:18:57 2016 -0500

    wip
This commit is contained in:
2016-09-11 19:53:02 -05:00
parent b063f188b9
commit 1ba40c965d
11 changed files with 98 additions and 8 deletions

View File

@ -1,5 +1,5 @@
class AccountsController < ApplicationController
before_action :set_account, only: [:show, :edit, :update, :destroy]
before_action :set_account, only: [:show, :edit, :reveal, :update, :destroy]
# GET /accounts
# GET /accounts.json
@ -21,6 +21,10 @@ class AccountsController < ApplicationController
def edit
end
def reveal
render json: { hash: @account.password }.to_json
end
# POST /accounts
# POST /accounts.json
def create