Skip to content

Small edits to login.js - #305

Merged
psvenk merged 3 commits into
Aspine:masterfrom
notrodes:master
Jul 11, 2021
Merged

psvenk merged 3 commits into
Aspine:masterfrom
notrodes:master

Conversation

@notrodes

@notrodes notrodes commented Jul 2, 2021

Copy link
Copy Markdown
Collaborator

In this vein, either have server send full error text or server side render could be improvements.

@psvenk
psvenk self-requested a review July 2, 2021 23:01

@psvenk psvenk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@psvenk

psvenk commented Jul 2, 2021

Copy link
Copy Markdown
Member

Also @notrodes re your comment: my reasoning for having the server send only an error code was that it plays nicely with the enum defined in the server code and that it allows us to change the verbiage without affecting the API in any way. I don't think the client-side performance hit is enough to merit SSR here (though it may be a good idea all things considered).

@psvenk psvenk added this to the 2.8.2 milestone Jul 2, 2021
@psvenk
psvenk merged commit a51187c into Aspine:master Jul 11, 2021
notrodes pushed a commit to notrodes/aspine that referenced this pull request Jul 24, 2021
Removed display hide because js does that now in switch.
Removed a selector with commented out body.

Changed documentation to jsdoc format.

Small edits to login.js (Aspine#305)

* Simplified the login.js file. Reduced logic to single switch.

* Removed txt3 class because it does not exist, css used id reference.

* Removed display hide because js does that now in switch.
Removed a selector with commented out body.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants