Finish Forgot Password #20

Closed
opened 2024-03-24 14:27:55 +00:00 by pcfreak30 · 1 comment
Owner
  // TODO: another detail is the reset password has no screen to either accept a new pass or  
  // just say an email has been sent.. if i were to generate  a pass for them. imho i think 
  // a screen that just says a password reset email has been sent would be good, then a separate
  // route to accept the reset token and send that to the api when would then trigger a new email
  // with the pass. 

This should be followed, include a mock placeholder for the api, and use the following algo as a reference for how the code will be shown:

func GenerateSecurityToken() string {
	const charset = "abcdefghijklmnopqrstuvwxyz0123456789"
	b := make([]byte, 6)
	_, err := rand.Read(b)
	if err != nil {
		panic(err)
	}
	for i := 0; i < 6; i++ {
		b[i] = charset[b[i]%byte(len(charset))]
	}
	return string(b)
}

It might also make sense to make a reusable component around this "code verification" component.

``` // TODO: another detail is the reset password has no screen to either accept a new pass or // just say an email has been sent.. if i were to generate a pass for them. imho i think // a screen that just says a password reset email has been sent would be good, then a separate // route to accept the reset token and send that to the api when would then trigger a new email // with the pass. ``` This should be followed, include a mock placeholder for the api, and use the following algo as a reference for how the code will be shown: ``` func GenerateSecurityToken() string { const charset = "abcdefghijklmnopqrstuvwxyz0123456789" b := make([]byte, 6) _, err := rand.Read(b) if err != nil { panic(err) } for i := 0; i < 6; i++ { b[i] = charset[b[i]%byte(len(charset))] } return string(b) } ``` It might also make sense to make a reusable component around this "code verification" component.
pcfreak30 added this to the Q1 milestone 2024-03-24 14:27:55 +00:00
pcfreak30 added the
ui
label 2024-03-24 14:27:55 +00:00
ditorodev was assigned by pcfreak30 2024-03-24 14:27:55 +00:00
pcfreak30 added this to the Portal project 2024-03-24 14:27:55 +00:00
Collaborator

I think is done as when you submit a forgot password request we are showing a notification thru Refine useNotification

I think is done as when you submit a forgot password request we are showing a notification thru Refine useNotification
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: LumeWeb/portal-dashboard#20
No description provided.