Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum

developerWorks

  

Sign in to participate PreviousPrevious NextNext


Elena Jianu 26.Oct.10 11:11 AM a Web browser
Domino Designer 6.5.4 FP1 All Platforms


I have a big problem with VerifyPassword method while comparing the current password (encrypted with @HashPassword) with the one from HTTPPassword.

By now, all passwords were encrypted with @password and I need to add a few hundreds of users that have their passwords encrypted with @HashPassword. I need this when users wants to change their own passwords.

The code I use is:

If(curNabDoc.HTTPPassword(0) <> req.chkEncodedPasswd(0)) Then
Error message
Else <change password>

The new condition which is not working is:

If(curNabDoc.HTTPPassword(0) <> req.chkEncodedPasswd(0) Or Not(s.VerifyPassword( req.curPasswd(0), curNabDoc.HTTPPassword(0)))) Then
Error message
Else <change password>

Where curPasswd is the password that the user entered on the change password form and chkEncodedPasswd is @Password(@Trim(curPasswd))

The VerifyPassword is always false. Do you have any suggestion that would help me?

More code in case it helps

Dim session As New NotesSession
Dim req As notesDocument
Set req = session.DocumentContext

Sub findUserInPublicNab(s As notesSession, req As notesDocument)
Dim curUser As New notesName(req.Remote_User(0))
Dim curNabView As notesView
Dim curNabDoc As notesDocument
Dim allNabs As Variant
Dim count As Integer
Dim curNab As notesDatabase
Set curNab = s.CurrentDatabase
sLocation = "/" + curNab.FileName
Set curNabView = curNab.GetView("($VimPeople)")
Set curNabDoc = curNabView.getDocumentByKey(curUser.Abbreviated, True)
'Msgbox curUser.Abbreviated

If Not(curNabDoc Is Nothing) Then
'if we find a matching person doc we check if the supplied
'password matches the one found in the person doc.
If(curNabDoc.HTTPPassword(0) <> req.chkEncodedPasswd(0) Or Not(s.VerifyPassword( req.curPasswd(0), curNabDoc.HTTPPassword(0)))) Then
Call WebReturnAlert (ERR)
Exit Sub
Else
'if the passwords matches we update the person doc with the new password.
Call updatePasswd(curNabDoc, req)
Call updateNabSystemView ( curNab )
Exit Sub
End If
Else
Call WebReturnAlert (ERR_PERSONNOTFOUND)
End If
End Sub






VerifyPassword metod issue (Elena Jianu 26.Oct.10)
. . RE: VerifyPassword metod issue (Leo Green 29.Oct.10)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
Notes/Domino 4 and 5
IBM Connections
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
IBM SmartCloud Meetings
IBM Web Content Manager
Lotus Domino Document Manager
Lotus e-learning
Lotus Enterprise Integration
Lotus Expeditor
Lotus Protector
Lotus Quickr
Lotus SmartSuite
Lotus Symphony
Lotus Symphony Developer Toolkit Support
Lotus Workflow