File tree Expand file tree Collapse file tree 2 files changed +9
-25
lines changed
web-ui/src/main/resources/catalog Expand file tree Collapse file tree 2 files changed +9
-25
lines changed Original file line number Diff line number Diff line change 95
95
$scope . sendPassword = value ;
96
96
$ ( '#username' ) . focus ( ) ;
97
97
} ;
98
+
99
+ var showForgotPassword = gnUtilityService . getUrlParameter ( 'showforgotpassword' ) ;
100
+
101
+ if ( ( showForgotPassword ) && ( showForgotPassword === 'true' ) ) {
102
+ $scope . setSendPassword ( true ) ;
103
+ }
104
+
98
105
/**
99
106
* Register user. An email will be sent to the new
100
107
* user and another to the catalog admin if a profile
Original file line number Diff line number Diff line change 271
271
< a class ="btn btn-default " href ="new.account " data-translate =""> createAnAccount</ a >
272
272
</ li >
273
273
< li role ="separator " class ="divider hidden-xs " data-ng-show ="isHostDefined() "> </ li >
274
- < li data-ng-show ="isHostDefined() ">
274
+ < li data-ng-show ="isHostDefined() " class =" gn-margin-bottom " >
275
275
<!-- forgot password -->
276
276
< b data-translate =""> forgetDetails</ b >
277
- <!-- <span data-ng-show="sendPassword === false">-->
278
277
< span >
279
278
< p data-translate =""> forgetDetailsInfo</ p >
280
- < button type ="submit " class ="btn btn-default btn-block " data-ng-click ="setSendPassword(true) ">
281
- < span data-translate =""> recoverPassword</ span >
282
- </ button >
279
+ < a class ="btn btn-default btn-block " href ="catalog.signin?showforgotpassword=true " data-translate =""> recoverPassword</ a >
283
280
</ span >
284
-
285
- < div data-ng-show ="sendPassword === true ">
286
- < form class ="form-horizontal " id ="userinfo " name ="gnUserinfo ">
287
- < input type ="hidden " name ="_csrf " value ="{{csrf}} "/>
288
- < div class ="form-group ">
289
- < label data-translate =""> username</ label >
290
- < input type ="text " name ="username " id ="username "
291
- aria-label ="{{'username' | translate}} "
292
- data-ng-model ="usernameToRemind "
293
- data-ng-required ="" class ="form-control "/>
294
- </ div >
295
- < button type ="submit "
296
- class ="btn btn-default btn-block "
297
- data-ng-disabled ="usernameToRemind == '' "
298
- data-ng-click ="remindMyPassword('#userinfo') ">
299
- < i class ="fa fa-question-sign "/>
300
- < span data-translate =""> sendPasswordLinkToMyEmail</ span >
301
- </ button >
302
- </ form >
303
- </ div >
304
281
</ li >
305
282
</ ul >
306
283
</ li >
You can’t perform that action at this time.
0 commit comments