Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fix warning

  • Loading branch information...
commit a862dfcb5cfa7b6a88f9483d4a156c81ddf1405e 1 parent fce59b6
authored January 09, 2013
10  src/main/scala/net/liftmodules/openid/OpenIDProtoUser.scala
@@ -70,7 +70,7 @@ trait MetaOpenIDProtoUser[ModelType <: OpenIDProtoUser[ModelType]] extends MetaM
70 70
       
71 71
       self.findAll(By(email, u.email.is)) map {existing =>
72 72
         info("Cannot register new user, email %s already exists with openId ".format(existing.email.is,existing.openId.is))
73  
-        S.error(duplicateEmailErrorMessage(u.email))
  73
+        S.error(duplicateEmailErrorMessage(u.email.get))
74 74
         S.redirectTo(homePage)
75 75
       }
76 76
       
@@ -134,7 +134,7 @@ trait MetaOpenIDProtoUser[ModelType <: OpenIDProtoUser[ModelType]] extends MetaM
134 134
   <form method="post" action={S.uri}>
135 135
     <table>
136 136
       <tr>
137  
-        <td colspan="2">{S.??("log.in")}</td>
  137
+        <td colspan="2">{S.?("log.in")}</td>
138 138
       </tr>
139 139
       <tr>
140 140
         <td>OpenID</td><td><user:openid /></td>
@@ -170,7 +170,7 @@ trait MetaOpenIDProtoUser[ModelType <: OpenIDProtoUser[ModelType]] extends MetaM
170 170
         case (Full(id), _) =>
171 171
           val user = self.findOrCreate(id.getIdentifier, fo)
172 172
           logUserIn(user)
173  
-          S.notice(S.??("Welcome ")+user.niceName)
  173
+          S.notice(S.?("Welcome ")+user.niceName)
174 174
 
175 175
         case (_, Full(exp)) =>
176 176
           warn("Got an exception", exp)
@@ -207,7 +207,7 @@ trait MetaOpenIDProtoUser[ModelType <: OpenIDProtoUser[ModelType]] extends MetaM
207 207
 
208 208
     Helpers.bind("user", loginXhtml,
209 209
                  "openid" -> (FocusOnLoad(<input type="text" name={openIDVendor.PostParamName}/>)),
210  
-                 "submit" -> (<input type="submit" value={S.??("log.in")}/>))
  210
+                 "submit" -> (<input type="submit" value={S.?("log.in")}/>))
211 211
   }
212 212
 
213 213
   private[openid] def findByNickname(str: String): List[ModelType] = findAll(By(nickname, str))
@@ -256,7 +256,7 @@ trait OpenIDProtoUser[T <: OpenIDProtoUser[T]] extends MegaProtoUser[T] {
256 256
     override def validations = validText _ :: validateNickname _ :: super.validations
257 257
   }
258 258
 
259  
-  override def niceName: String = nickname
  259
+  override def niceName: String = nickname.get
260 260
 }
261 261
 
262 262
 }

0 notes on commit a862dfc

Please sign in to comment.
Something went wrong with that request. Please try again.