Revision 96:b44c250bd97e

View differences:

src/main/java/my/com/upass/MinimalUPassControllerV2.java
457 457
		if (!valid)
458 458
			throw new UPassException(MinimalConstants.ERR_INVALID_INPUT);
459 459

  
460
		final MinimalUserBean user = profile.getMinUser();
461
		final String username = user.getUsername();
462
		final String userPassword = user.getHashedPassword();
463

  
464 460
		if (profile instanceof M2uUserContainer) {
465
			UserProfile m2uUser = findProfile_noAccessCheck(username, ClientApp.APP_ID_M2U, txSession);
461
			UserProfile m2uUser = findProfile_noAccessCheck(
462
					profile.getMinUser().getUsername(),
463
					ClientApp.APP_ID_M2U,
464
					txSession);
466 465
			if (m2uUser instanceof M2uUser)
467 466
				((M2uUserContainer) profile).setM2uUser((M2uUser) m2uUser);
468 467
			else
......
470 469
		}
471 470
		final int appIdForProfile = AppAccessMgtService.getAppIdForProfile(profile).intValue();
472 471

  
472
		final MinimalUserBean user = profile.getMinUser();
473
		final String username = user.getUsername();
474
		final String userPassword = user.getHashedPassword();
475

  
473 476
		List grantedAppAccesses = appAccessMgtService.listAppIdsForUser(username, txSession);
474 477

  
475 478
		boolean granted = false;

Also available in: Unified diff