Project

General

Profile

Actions

Bug #3615

closed

Wt::Auth::AuthWidget::setInternalBasePath does not enable match on /register as documented

Added by Bruce Toll over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Benoit Daccache
Target version:
Start date:
10/01/2014
Due date:
% Done:

0%

Estimated time:

Description

Wt::Auth::AuthWidget::setInternalBasePath is documented to provide the registration path at an internalPath that is defined to end with '/register' in the source code. This does not appear to work in Wt github version 3.3.3-19-gad17d0b.

While there do not appear to be any Wt examples that demonstrate the use of this feature without modification, the issue can be observed by patching the hangman example and then attempting to visit .../auth/register:

diff --git a/examples/hangman/HangmanGame.C b/examples/hangman/HangmanGame.C
index 63b63fa..b870d0d 100644
--- a/examples/hangman/HangmanGame.C
+++ b/examples/hangman/HangmanGame.C
@@ -32,6 +32,7 @@ HangmanGame::HangmanGame(WContainerWidget *parent):

   Auth::AuthWidget *authWidget = new Auth::AuthWidget(session_.login());
   authWidget->setModel(authModel);
+  authWidget->setInternalBasePath("/auth");
   authWidget->setRegistrationEnabled(true);

A patch that seems to help with this issue is attached. It's only been lightly tested.


Files

Actions #1

Updated by Koen Deforche about 9 years ago

  • Status changed from New to InProgress
  • Assignee set to Benoit Daccache
  • Target version set to 3.3.4
Actions #2

Updated by Benoit Daccache about 9 years ago

  • Status changed from InProgress to Resolved

Fixed in commit 8c17d806cf59d33e896f77b9aba92bc5de4a0686

Actions #3

Updated by Koen Deforche about 9 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF