Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
…a-2-server into Sprint-4
  • Loading branch information
kndonetm committed Nov 29, 2023
2 parents 6124037 + 4c83f21 commit 2069883
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 4 deletions.
7 changes: 7 additions & 0 deletions docs/topics/Authenticating-Logging-In.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Authenticating/Logging In

Upon product turnover, the designated profile for login is exclusively the __'admin'__ profile, which will be promptly provided. Once granted access to the website, the __'admin'__ has the capability to establish supplementary profiles for other officers to utilize.

## Logging In

To access the website, enter your respective credentials and click on the __'Log In'__ button. Additionally, an option to __'Remember me'__ is available, enabling users to have their login credentials remembered by their device. This allows swift access to the website without the need to input credentials every time.


<seealso>
<category ref="uh">
<a href="Admin.md" />
Expand Down
21 changes: 21 additions & 0 deletions docs/topics/Logging-Out.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Logging Out

To log out from your profile, navigate to the lower section of the navigation drawer where you'll find a designated __'Logout'__ button. Simply click on it to initiate the logout process.

If the __'Logout'__ button cannot be seen, please make sure that the navigation drawer is extended. The __'Logout'__ button is only available when the navigation drawer is extended.

<seealso>
<category ref="uh">
<a href="Admin.md" />
<a href="Loans.md" />
<a href="Deposits.md" />
<a href="Profiles.md" />
</category>
<category ref="ds">
<a href="Naming.md" />
<a href="Comments.md" />
<a href="Code-Style.md" />
<a href="Git-Commit-Messages.md" />
<a href="Vue.md"></a>
</category>
</seealso>
1 change: 1 addition & 0 deletions docs/ucwa.tree
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<toc-element topic="Introduction.md"/>
<toc-element topic="User-Handbook.md">
<toc-element topic="Authenticating-Logging-In.md"/>
<toc-element topic="Logging-Out.md"/>
<toc-element topic="Loans.md">
<toc-element topic="Loan-Dashboard.md"/>
<toc-element topic="Creating-a-Loan-Application.md"/>
Expand Down
10 changes: 6 additions & 4 deletions src/routes/loans.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,6 @@ router.post('/:loanID/review', async (req, res, next) => {

parseDecimal(settings)

console.log(existingLoan.loanType)

if (!settings[existingLoan.loanType]) {
return res.status(400).json({
message: 'No loan settings exist for the current loan type',
Expand Down Expand Up @@ -478,8 +476,12 @@ router.patch('/:loanID', async (req, res, next) => {
/**
* DELETE /:loanID
*
* Mark a loan or loan application as deleted.
* loanID is the ID of the loan to delete.
* Delete a loan or loan application
*
* This functionality only soft deletes the loan;
* the deleted loan will still be visible in the database
*
* Request body must be a JSON object containing the fields specified in the `parameters` section.
*
* @name delete/:loanID
* @function
Expand Down

0 comments on commit 2069883

Please sign in to comment.