Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4)

Unified Diff: state/user.go

Issue 51450047: Preliminary support for basic juju id commands: (Closed)
Patch Set: Preliminary support for basic juju id commands: Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « state/apiserver/client/api_test.go ('k') | state/user_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: state/user.go
=== modified file 'state/user.go'
--- state/user.go 2014-03-13 16:11:02 +0000
+++ state/user.go 2014-03-14 03:05:26 +0000
@@ -28,6 +28,9 @@
if !validUser.MatchString(name) {
return nil, fmt.Errorf("invalid user name %q", name)
}
+ if name != "admin" && password == "" {
+ return nil, fmt.Errorf("password can't be empty")
+ }
salt, err := utils.RandomSalt()
if err != nil {
return nil, err
« no previous file with comments | « state/apiserver/client/api_test.go ('k') | state/user_test.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b