mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 09:46:16 +01:00
merge changes from branch 1.x
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
*/
|
||||
|
||||
|
||||
|
||||
package sonia.scm.security;
|
||||
|
||||
//~--- non-JDK imports --------------------------------------------------------
|
||||
@@ -68,6 +69,17 @@ public class DefaultKeyGenerator implements KeyGenerator
|
||||
|
||||
//~--- methods --------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @param args
|
||||
*/
|
||||
public static void main(String[] args)
|
||||
{
|
||||
System.out.println(new DefaultKeyGenerator().createKey());
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
@@ -107,8 +119,8 @@ public class DefaultKeyGenerator implements KeyGenerator
|
||||
//~--- fields ---------------------------------------------------------------
|
||||
|
||||
/** Field description */
|
||||
private AtomicLong sessionKey = new AtomicLong();
|
||||
private final AtomicLong sessionKey = new AtomicLong();
|
||||
|
||||
/** Field description */
|
||||
private Random random = new Random();
|
||||
private final Random random = new Random();
|
||||
}
|
||||
|
||||
@@ -361,7 +361,10 @@ public class ScmRealm extends AuthorizingRealm
|
||||
// modify existing user, copy properties except password and admin
|
||||
if (user.copyProperties(dbUser, false))
|
||||
{
|
||||
userManager.modify(dbUser);
|
||||
user.setLastModified(System.currentTimeMillis());
|
||||
UserEventHack.fireEvent(userManager, HandlerEventType.BEFORE_MODIFY, user);
|
||||
userDAO.modify(user);
|
||||
UserEventHack.fireEvent(userManager, HandlerEventType.MODIFY, user);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user