Skip to content

Commit

Permalink
Scramble password after successful login
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikl committed Oct 5, 2020
1 parent 9c11ca7 commit d2f7aff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/OMEROServer.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ setGeneric(name="connect",
)

#' Disconnect from an OMERO server
#' Note: You cannot reconnect using the same OMEROServer instance,
#' you have to create a new OMEROServer!
#'
#' @param server The server
#' @return The server in "disconnected" state (if successful)
Expand Down Expand Up @@ -417,11 +419,15 @@ setMethod(f="connect",
if (is.null(server@ctx))
server@ctx <- new (SecurityContext, .jlong(user$getGroupId()))

server@password <- "***"

return(server)
}
)

#' Disconnect from an OMERO server
#' Note: You cannot reconnect using the same OMEROServer instance,
#' you have to create a new OMEROServer!
#'
#' @param server The server
#' @return The server in "disconnected" state (if successful)
Expand Down

0 comments on commit d2f7aff

Please sign in to comment.